We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41ed329 + 16fc113 commit 3995643Copy full SHA for 3995643
core/src/mem/maybe_uninit.rs
@@ -319,9 +319,9 @@ impl<T> MaybeUninit<T> {
319
/// Create a new array of `MaybeUninit<T>` items, in an uninitialized state.
320
///
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];`.
+ /// when Rust allows
+ /// [inline const expressions](https://github.com/rust-lang/rust/issues/76001).
+ /// The example below could then use `let mut buf = [const { MaybeUninit::<u8>::uninit() }; 32];`.
325
326
/// # Examples
327
0 commit comments