We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e8fb93 commit 33a969dCopy full SHA for 33a969d
src/libcore/mem.rs
@@ -1149,14 +1149,14 @@ impl<T> MaybeUninit<T> {
1149
unsafe { &mut *self.value as *mut T }
1150
}
1151
1152
- /// Get a pointer to the first contained values.
+ /// Get a pointer to the first element of the array.
1153
#[unstable(feature = "maybe_uninit", issue = "53491")]
1154
#[inline(always)]
1155
pub fn first_ptr(this: &[MaybeUninit<T>]) -> *const T {
1156
this as *const [MaybeUninit<T>] as *const T
1157
1158
1159
- /// Get a mutable pointer to the first contained values.
+ /// Get a mutable pointer to the first element of the array.
1160
1161
1162
pub fn first_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T {
0 commit comments