Skip to content

Commit

Permalink
doc: a value of type &str is called a "string slice"
Browse files Browse the repository at this point in the history
  • Loading branch information
tshepang committed Aug 11, 2016
1 parent 0ef24ee commit c99c2ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcollections/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c99c2ea

Please sign in to comment.