doc: a value of type &str is called a "string slice"
This commit is contained in:
parent
0ef24eed2f
commit
c99c2ea838
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue