]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/mem/maybe_uninit.rs
update comment at MaybeUninit::uninit_array
[rust.git] / library / core / src / mem / maybe_uninit.rs
index cb072931232de22f8243ae0bf1fa9bd2d0c3796e..337f0e847bb5619606ac0aa27b7dc39e326155a5 100644 (file)
@@ -319,9 +319,9 @@ pub const fn uninit() -> MaybeUninit<T> {
     /// Create a new array of `MaybeUninit<T>` items, in an uninitialized state.
     ///
     /// Note: in a future Rust version this method may become unnecessary
-    /// when array literal syntax allows
-    /// [repeating const expressions](https://github.com/rust-lang/rust/issues/49147).
-    /// 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];`.
     ///
     /// # Examples
     ///