File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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> {
721721 & mut * self . value
722722 }
723723
724- /// Get a slice of assume- initialized items .
724+ /// Assuming all the elements are initialized, get a slice to them .
725725 ///
726726 /// # Safety
727727 ///
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
729729 /// really are in an initialized state.
730730 /// Calling this when the content is not yet fully initialized causes undefined behavior.
731731 #[ unstable( feature = "maybe_uninit_slice_assume_init" , issue = "0" ) ]
@@ -734,11 +734,11 @@ impl<T> MaybeUninit<T> {
734734 & * ( slice as * const [ Self ] as * const [ T ] )
735735 }
736736
737- /// Get a mutable slice of assume-initialized items .
737+ /// Assuming all the elements are initialized, get a mutable slice to them .
738738 ///
739739 /// # Safety
740740 ///
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
742742 /// really are in an initialized state.
743743 /// Calling this when the content is not yet fully initialized causes undefined behavior.
744744 #[ unstable( feature = "maybe_uninit_slice_assume_init" , issue = "0" ) ]
You can’t perform that action at this time.
0 commit comments