Skip to content

Commit

Permalink
Rollup merge of rust-lang#48436 - adeschamps:string-doc-fix, r=estebank
Browse files Browse the repository at this point in the history
Small grammar fix to docs for String::new()
  • Loading branch information
Manishearth authored Feb 23, 2018
2 parents f2da2fa + e88fe1d commit cf3623f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liballoc/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ impl String {
///
/// Given that the `String` is empty, this will not allocate any initial
/// buffer. While that means that this initial operation is very
/// inexpensive, but may cause excessive allocation later, when you add
/// inexpensive, it may cause excessive allocation later when you add
/// data. If you have an idea of how much data the `String` will hold,
/// consider the [`with_capacity`] method to prevent excessive
/// re-allocation.
Expand Down

0 comments on commit cf3623f

Please sign in to comment.