diff options
| author | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-08-11 20:41:04 +0200 |
|---|---|---|
| committer | Tshepang Lekhonkhobe <tshepang@gmail.com> | 2016-08-11 20:41:31 +0200 |
| commit | c99c2ea83810e72f139a7454dd06fb0306ee77f1 (patch) | |
| tree | 877daabf43e6556c6598917ee21a5e33d9865865 | |
| parent | 0ef24eed2fe3bfdd050e246327332fadb5985a6a (diff) | |
| download | rust-c99c2ea83810e72f139a7454dd06fb0306ee77f1.tar.gz rust-c99c2ea83810e72f139a7454dd06fb0306ee77f1.zip | |
doc: a value of type `&str` is called a "string slice"
| -rw-r--r-- | src/libcollections/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 70b514afd03..4f0f1e439af 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. |
