]> git.lizzy.rs Git - rust.git/commitdiff
minor wording tweak to slice::{as_ptr, as_mut_ptr}
authorQuietMisdreavus <grey@quietmisdreavus.net>
Fri, 17 Mar 2017 15:50:30 +0000 (10:50 -0500)
committerQuietMisdreavus <grey@quietmisdreavus.net>
Fri, 17 Mar 2017 17:24:44 +0000 (12:24 -0500)
src/libcollections/slice.rs

index 2ea953df8735729b6d02dbecf7453d1a07615d9d..0723be828e5b7029bafdabc25981eef1093c9fdc 100644 (file)
@@ -437,8 +437,8 @@ pub unsafe fn get_unchecked_mut<I>(&mut self, index: I) -> &mut I::Output
     /// The caller must ensure that the slice outlives the pointer this
     /// function returns, or else it will end up pointing to garbage.
     ///
-    /// Modifying the slice may cause its buffer to be reallocated, which
-    /// would also make any pointers to it invalid.
+    /// Modifying the container referenced by this slice may cause its buffer
+    /// to be reallocated, which would also make any pointers to it invalid.
     ///
     /// # Examples
     ///
@@ -463,8 +463,8 @@ pub fn as_ptr(&self) -> *const T {
     /// The caller must ensure that the slice outlives the pointer this
     /// function returns, or else it will end up pointing to garbage.
     ///
-    /// Modifying the slice may cause its buffer to be reallocated, which
-    /// would also make any pointers to it invalid.
+    /// Modifying the container referenced by this slice may cause its buffer
+    /// to be reallocated, which would also make any pointers to it invalid.
     ///
     /// # Examples
     ///