diff options
| author | Ralf Jung <post@ralfj.de> | 2019-01-28 11:04:30 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2019-01-28 11:04:30 +0100 |
| commit | 33a969d9faa6d935895a82cbe6e96ee83ba36b88 (patch) | |
| tree | 30ff8b0fd9c3f2c0c2289451b6b73536acb57070 | |
| parent | 0e8fb93249ee63edba83cd7f2f5f1b09819efa15 (diff) | |
| download | rust-33a969d9faa6d935895a82cbe6e96ee83ba36b88.tar.gz rust-33a969d9faa6d935895a82cbe6e96ee83ba36b88.zip | |
fix typos, improve docs
| -rw-r--r-- | src/libcore/mem.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index 4631d32d186..fdee86064e6 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -1149,14 +1149,14 @@ impl<T> MaybeUninit<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")] #[inline(always)] pub fn first_ptr(this: &[MaybeUninit<T>]) -> *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")] #[inline(always)] pub fn first_mut_ptr(this: &mut [MaybeUninit<T>]) -> *mut T { |
