diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2021-01-31 16:36:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-01-31 16:36:56 +0100 |
| commit | 600b2d3e5a38619a8cbf9b5854e575ee1ffad693 (patch) | |
| tree | f439e2c3d187bfdc09ddb134e3f11a7d010a4cf6 | |
| parent | 36af32a74068895575b84d9ded975ce9cd81bc87 (diff) | |
| parent | 6695690d495ff7b2ffb6dd78db4ae9b9639dee67 (diff) | |
| download | rust-600b2d3e5a38619a8cbf9b5854e575ee1ffad693.tar.gz rust-600b2d3e5a38619a8cbf9b5854e575ee1ffad693.zip | |
Rollup merge of #81589 - Seppel3210:master, r=jonas-schievink
Fix small typo in string.rs
| -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. |
