Skip to content

Commit

Permalink
Rollup merge of rust-lang#35597 - tshepang:it-is-a-slice, r=steveklabnik
Browse files Browse the repository at this point in the history
doc: a value of type `&str` is called a "string slice"
  • Loading branch information
eddyb committed Aug 14, 2016
2 parents 812a8c1 + c99c2ea commit 322aa6e
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 322aa6e

Please sign in to comment.