From c99c2ea83810e72f139a7454dd06fb0306ee77f1 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Thu, 11 Aug 2016 20:41:04 +0200 Subject: [PATCH] doc: a value of type `&str` is called a "string slice" --- src/libcollections/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 70b514afd035f..4f0f1e439af3f 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -1152,7 +1152,7 @@ impl String { 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.