File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -721,11 +721,11 @@ impl<T> MaybeUninit<T> {
721
721
& mut * self . value
722
722
}
723
723
724
- /// Get a slice of assume- initialized items .
724
+ /// Assuming all the elements are initialized, get a slice to them .
725
725
///
726
726
/// # Safety
727
727
///
728
- /// It is up to the caller to guarantee that the `MaybeUninit<T>` items
728
+ /// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
729
729
/// really are in an initialized state.
730
730
/// Calling this when the content is not yet fully initialized causes undefined behavior.
731
731
#[ unstable( feature = "maybe_uninit_slice_assume_init" , issue = "0" ) ]
@@ -734,11 +734,11 @@ impl<T> MaybeUninit<T> {
734
734
& * ( slice as * const [ Self ] as * const [ T ] )
735
735
}
736
736
737
- /// Get a mutable slice of assume-initialized items .
737
+ /// Assuming all the elements are initialized, get a mutable slice to them .
738
738
///
739
739
/// # Safety
740
740
///
741
- /// It is up to the caller to guarantee that the `MaybeUninit<T>` items
741
+ /// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
742
742
/// really are in an initialized state.
743
743
/// Calling this when the content is not yet fully initialized causes undefined behavior.
744
744
#[ unstable( feature = "maybe_uninit_slice_assume_init" , issue = "0" ) ]
You can’t perform that action at this time.
0 commit comments