Skip to content

Commit c99c2ea

Browse files
committed
doc: a value of type &str is called a "string slice"
1 parent 0ef24ee commit c99c2ea

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)