Skip to content

Commit

Permalink
update comment at MaybeUninit::uninit_array
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Mar 27, 2021
1 parent f811f14 commit 5cfc98f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/core/src/mem/maybe_uninit.rs
Expand Up @@ -319,9 +319,9 @@ impl<T> 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
///
Expand Down

0 comments on commit 5cfc98f

Please sign in to comment.