Skip to content

Commit 33a969d

Browse files
committed
fix typos, improve docs
1 parent 0e8fb93 commit 33a969d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/mem.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1149,14 +1149,14 @@ impl<T> MaybeUninit<T> {
11491149
unsafe { &mut *self.value as *mut T }
11501150
}
11511151

1152-
/// Get a pointer to the first contained values.
1152+
/// Get a pointer to the first element of the array.
11531153
#[unstable(feature = "maybe_uninit", issue = "53491")]
11541154
#[inline(always)]
11551155
pub fn first_ptr(this: &[MaybeUninit<T>]) -> *const T {
11561156
this as *const [MaybeUninit<T>] as *const T
11571157
}
11581158

1159-
/// Get a mutable pointer to the first contained values.
1159+
/// Get a mutable pointer to the first element of the array.
11601160
#[unstable(feature = "maybe_uninit", issue = "53491")]
11611161
#[inline(always)]
11621162
pub fn first_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T {

0 commit comments

Comments
 (0)