diff options
| author | Sebastian Widua <seppel3210@gmail.com> | 2021-01-31 12:19:09 +0100 |
|---|---|---|
| committer | Sebastian Widua <seppel3210@gmail.com> | 2021-01-31 12:19:09 +0100 |
| commit | 6695690d495ff7b2ffb6dd78db4ae9b9639dee67 (patch) | |
| tree | 10ca541bf4829ab013896dfd7c1cd5bb2b9aa76d | |
| parent | 9b3242982202707be2485b1e4cf5f3b34466a38d (diff) | |
| download | rust-6695690d495ff7b2ffb6dd78db4ae9b9639dee67.tar.gz rust-6695690d495ff7b2ffb6dd78db4ae9b9639dee67.zip | |
Fix small typo
| -rw-r--r-- | library/alloc/src/string.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 9b0b480a7e9..3218b3535c9 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -972,7 +972,7 @@ impl String { self.vec.try_reserve(additional) } - /// Tries to reserves the minimum capacity for exactly `additional` more elements to + /// Tries to reserve the minimum capacity for exactly `additional` more elements to /// be inserted in the given `String`. After calling `reserve_exact`, /// capacity will be greater than or equal to `self.len() + additional`. /// Does nothing if the capacity is already sufficient. |
