Apply docs suggestions from review
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
parent
1906c6f714
commit
05c14bcc31
1 changed files with 4 additions and 4 deletions
|
@ -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")]
|
||||
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue