diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2018-02-23 10:24:55 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-23 10:24:55 -0800 |
| commit | cf3623f2848661cdb8037e9b5479c3445b1fd546 (patch) | |
| tree | 67049869cf11c82d141ae11bc01ed7e0feb28c55 /src/liballoc | |
| parent | f2da2fa315e000a0f53c2a2e7c26d2fd80952bf1 (diff) | |
| parent | e88fe1d5199b8704342e80e8effcdfbdf3ca020a (diff) | |
| download | rust-cf3623f2848661cdb8037e9b5479c3445b1fd546.tar.gz rust-cf3623f2848661cdb8037e9b5479c3445b1fd546.zip | |
Rollup merge of #48436 - adeschamps:string-doc-fix, r=estebank
Small grammar fix to docs for String::new()
Diffstat (limited to 'src/liballoc')
| -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. |
