]> git.lizzy.rs Git - rust.git/commitdiff
fix typos, improve docs
authorRalf Jung <post@ralfj.de>
Mon, 28 Jan 2019 10:04:30 +0000 (11:04 +0100)
committerRalf Jung <post@ralfj.de>
Mon, 28 Jan 2019 10:04:30 +0000 (11:04 +0100)
src/libcore/mem.rs

index 4631d32d186f6c34ebb7b2cb9cdf07587513d996..fdee86064e6200c1f1c5cfd7c74fb6d78c481542 100644 (file)
@@ -1149,14 +1149,14 @@ pub fn as_mut_ptr(&mut self) -> *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")]
     #[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 {