fix typos, improve docs
This commit is contained in:
parent
0e8fb93249
commit
33a969d9fa
1 changed files with 2 additions and 2 deletions
|
@ -1149,14 +1149,14 @@ impl<T> MaybeUninit<T> {
|
||||||
unsafe { &mut *self.value as *mut T }
|
unsafe { &mut *self.value as *mut T }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a pointer to the first contained values.
|
/// Get a pointer to the first element of the array.
|
||||||
#[unstable(feature = "maybe_uninit", issue = "53491")]
|
#[unstable(feature = "maybe_uninit", issue = "53491")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn first_ptr(this: &[MaybeUninit<T>]) -> *const T {
|
pub fn first_ptr(this: &[MaybeUninit<T>]) -> *const T {
|
||||||
this as *const [MaybeUninit<T>] as *const T
|
this as *const [MaybeUninit<T>] as *const T
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get a mutable pointer to the first contained values.
|
/// Get a mutable pointer to the first element of the array.
|
||||||
#[unstable(feature = "maybe_uninit", issue = "53491")]
|
#[unstable(feature = "maybe_uninit", issue = "53491")]
|
||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
pub fn first_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T {
|
pub fn first_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T {
|
||||||
|
|
Loading…
Reference in a new issue