Skip to content

Commit

Permalink
Apply docs suggestions from review
Browse files Browse the repository at this point in the history
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
  • Loading branch information
SimonSapin and Centril committed Nov 7, 2019
1 parent 1906c6f commit 05c14bc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libcore/mem/maybe_uninit.rs
Expand Up @@ -721,11 +721,11 @@ impl<T> MaybeUninit<T> {
&mut *self.value
}

/// Get a slice of assume-initialized items.
/// Assuming all the elements are initialized, get a slice to them.
///
/// # Safety
///
/// It is up to the caller to guarantee that the `MaybeUninit<T>` items
/// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
/// really are in an initialized state.
/// Calling this when the content is not yet fully initialized causes undefined behavior.
#[unstable(feature = "maybe_uninit_slice_assume_init", issue = "0")]
Expand All @@ -734,11 +734,11 @@ impl<T> MaybeUninit<T> {
&*(slice as *const [Self] as *const [T])
}

/// Get a mutable slice of assume-initialized items.
/// Assuming all the elements are initialized, get a mutable slice to them.
///
/// # Safety
///
/// It is up to the caller to guarantee that the `MaybeUninit<T>` items
/// It is up to the caller to guarantee that the `MaybeUninit<T>` elements
/// really are in an initialized state.
/// Calling this when the content is not yet fully initialized causes undefined behavior.
#[unstable(feature = "maybe_uninit_slice_assume_init", issue = "0")]
Expand Down

0 comments on commit 05c14bc

Please sign in to comment.