Skip to content

Commit e88fe1d

Browse files
committed
Small grammar fix to docs for String::new().
1 parent b1f8e6f commit e88fe1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)