about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2021-01-31 16:36:56 +0100
committerGitHub <noreply@github.com>2021-01-31 16:36:56 +0100
commit600b2d3e5a38619a8cbf9b5854e575ee1ffad693 (patch)
treef439e2c3d187bfdc09ddb134e3f11a7d010a4cf6
parent36af32a74068895575b84d9ded975ce9cd81bc87 (diff)
parent6695690d495ff7b2ffb6dd78db4ae9b9639dee67 (diff)
downloadrust-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.rs2
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.