about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorQuietMisdreavus <grey@quietmisdreavus.net>2017-03-17 10:50:30 -0500
committerQuietMisdreavus <grey@quietmisdreavus.net>2017-03-17 12:24:44 -0500
commit963d4dfddeb302326432eb089771c4aed29f7b5c (patch)
tree0e9a141669b6d46c104a6b479565e7fe385cf46a /src
parentf77ee2ff0ff93a3af205e4fa564f9f52cc066009 (diff)
downloadrust-963d4dfddeb302326432eb089771c4aed29f7b5c.tar.gz
rust-963d4dfddeb302326432eb089771c4aed29f7b5c.zip
minor wording tweak to slice::{as_ptr, as_mut_ptr}
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/slice.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcollections/slice.rs b/src/libcollections/slice.rs
index 2ea953df873..0723be828e5 100644
--- a/src/libcollections/slice.rs
+++ b/src/libcollections/slice.rs
@@ -437,8 +437,8 @@ impl<T> [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
     ///
@@ -463,8 +463,8 @@ impl<T> [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
     ///