Rollup merge of #48436 - adeschamps:string-doc-fix, r=estebank

Small grammar fix to docs for String::new()
This commit is contained in:
Manish Goregaokar 2018-02-23 10:24:55 -08:00 committed by GitHub
commit cf3623f284
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.