Skip to content

Commit 5cc60f5

Browse files
committed
update doc test
Signed-off-by: tison <[email protected]>
1 parent 9ac48c3 commit 5cc60f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/core/src/cell/once.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ impl<T> OnceCell<T> {
178178
/// # Examples
179179
///
180180
/// ```
181+
/// #![feature(once_cell_get_mut)]
182+
///
181183
/// use std::cell::OnceCell;
182184
///
183185
/// let mut cell = OnceCell::new();
@@ -253,7 +255,7 @@ impl<T> OnceCell<T> {
253255
/// # Examples
254256
///
255257
/// ```
256-
/// #![feature(once_cell_try)]
258+
/// #![feature(once_cell_get_mut)]
257259
///
258260
/// use std::cell::OnceCell;
259261
///

0 commit comments

Comments
 (0)