Skip to content

Commit 05c14bc

Browse files
SimonSapinCentril
andcommitted
Apply docs suggestions from review
Co-Authored-By: Mazdak Farrokhzad <[email protected]>
1 parent 1906c6f commit 05c14bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/mem/maybe_uninit.rs

+4-4
Original file line numberDiff line numberDiff 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")]

0 commit comments

Comments
 (0)