diff options
| author | Anthony Deschamps <anthony.j.deschamps@gmail.com> | 2018-02-22 14:21:54 -0500 |
|---|---|---|
| committer | Anthony Deschamps <anthony.j.deschamps@gmail.com> | 2018-02-22 14:21:54 -0500 |
| commit | e88fe1d5199b8704342e80e8effcdfbdf3ca020a (patch) | |
| tree | b7f7704d83154d6c51f6406d401562774d3729e9 /src/liballoc/string.rs | |
| parent | b1f8e6fb06d7362eeb2065347a7db94e76b1cb2f (diff) | |
| download | rust-e88fe1d5199b8704342e80e8effcdfbdf3ca020a.tar.gz rust-e88fe1d5199b8704342e80e8effcdfbdf3ca020a.zip | |
Small grammar fix to docs for String::new().
Diffstat (limited to 'src/liballoc/string.rs')
| -rw-r--r-- | src/liballoc/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs index 8d99d0bc8f4..409d2ab287e 100644 --- a/src/liballoc/string.rs +++ b/src/liballoc/string.rs @@ -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. |
