File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -319,9 +319,9 @@ impl<T> MaybeUninit<T> {
319
319
/// Create a new array of `MaybeUninit<T>` items, in an uninitialized state.
320
320
///
321
321
/// 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];`.
325
325
///
326
326
/// # Examples
327
327
///
You can’t perform that action at this time.
0 commit comments