1
Fork 0

Small grammar fix to docs for String::new().

This commit is contained in:
Anthony Deschamps 2018-02-22 14:21:54 -05:00
parent b1f8e6fb06
commit e88fe1d519

View file

@ -364,7 +364,7 @@ impl String {
/// ///
/// Given that the `String` is empty, this will not allocate any initial /// Given that the `String` is empty, this will not allocate any initial
/// buffer. While that means that this initial operation is very /// 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, /// data. If you have an idea of how much data the `String` will hold,
/// consider the [`with_capacity`] method to prevent excessive /// consider the [`with_capacity`] method to prevent excessive
/// re-allocation. /// re-allocation.