Skip to content

Commit cf3623f

Browse files
authored
Rollup merge of rust-lang#48436 - adeschamps:string-doc-fix, r=estebank
Small grammar fix to docs for String::new()
2 parents f2da2fa + e88fe1d commit cf3623f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/liballoc/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl String {
364364
///
365365
/// Given that the `String` is empty, this will not allocate any initial
366366
/// buffer. While that means that this initial operation is very
367-
/// inexpensive, but may cause excessive allocation later, when you add
367+
/// inexpensive, it may cause excessive allocation later when you add
368368
/// data. If you have an idea of how much data the `String` will hold,
369369
/// consider the [`with_capacity`] method to prevent excessive
370370
/// re-allocation.

0 commit comments

Comments
 (0)