Skip to content

Commit 16fc113

Browse files
committed
update comment at MaybeUninit::uninit_array
1 parent 7cf4405 commit 16fc113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/mem/maybe_uninit.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ impl<T> MaybeUninit<T> {
319319
/// Create a new array of `MaybeUninit<T>` items, in an uninitialized state.
320320
///
321321
/// Note: in a future Rust version this method may become unnecessary
322-
/// when array literal syntax allows
323-
/// [repeating const expressions](https://github.com/rust-lang/rust/issues/49147).
324-
/// The example below could then use `let mut buf = [MaybeUninit::<u8>::uninit(); 32];`.
322+
/// when Rust allows
323+
/// [inline const expressions](https://github.com/rust-lang/rust/issues/76001).
324+
/// The example below could then use `let mut buf = [const { MaybeUninit::<u8>::uninit() }; 32];`.
325325
///
326326
/// # Examples
327327
///

0 commit comments

Comments
 (0)