Skip to content

Commit 4ab8208

Browse files
authored
Rollup merge of rust-lang#35597 - tshepang:it-is-a-slice, r=steveklabnik
doc: a value of type `&str` is called a "string slice"
2 parents 15d3bb0 + c99c2ea commit 4ab8208

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ impl String {
11521152
self.vec.set_len(len + amt);
11531153
}
11541154

1155-
/// Inserts a string into this `String` at a byte position.
1155+
/// Inserts a string slice into this `String` at a byte position.
11561156
///
11571157
/// This is an `O(n)` operation as it requires copying every element in the
11581158
/// buffer.

0 commit comments

Comments
 (0)