We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a0e229a + 5cfc98f commit 9ab5f7dCopy full SHA for 9ab5f7d
library/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