]> git.lizzy.rs Git - rust.git/commitdiff
doc: a value of type `&str` is called a "string slice"
authorTshepang Lekhonkhobe <tshepang@gmail.com>
Thu, 11 Aug 2016 18:41:04 +0000 (20:41 +0200)
committerTshepang Lekhonkhobe <tshepang@gmail.com>
Thu, 11 Aug 2016 18:41:31 +0000 (20:41 +0200)
src/libcollections/string.rs

index 70b514afd035f1d17d446c0dbbee6f158b1eb950..4f0f1e439af3f01cd1f0dc91477cce31d8f5799f 100644 (file)
@@ -1152,7 +1152,7 @@ unsafe fn insert_bytes(&mut self, idx: usize, bytes: &[u8]) {
         self.vec.set_len(len + amt);
     }
 
-    /// Inserts a string into this `String` at a byte position.
+    /// Inserts a string slice into this `String` at a byte position.
     ///
     /// This is an `O(n)` operation as it requires copying every element in the
     /// buffer.