Skip to content

Commit

Permalink
Update library/core/src/mem/maybe_uninit.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Josh Triplett <josh@joshtriplett.org>
  • Loading branch information
jkugelman and joshtriplett committed Oct 11, 2021
1 parent 3ac0ae2 commit b0b09f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/mem/maybe_uninit.rs
Expand Up @@ -291,7 +291,7 @@ impl<T> MaybeUninit<T> {
/// [`assume_init`]: MaybeUninit::assume_init
#[stable(feature = "maybe_uninit", since = "1.36.0")]
#[rustc_const_stable(feature = "const_maybe_uninit", since = "1.36.0")]
#[must_use = "use `ManuallyDrop` or `forget` to avoid running drop code"]
#[must_use = "use `forget` to avoid running Drop code"]
#[inline(always)]
pub const fn new(val: T) -> MaybeUninit<T> {
MaybeUninit { value: ManuallyDrop::new(val) }
Expand Down

0 comments on commit b0b09f0

Please sign in to comment.