From 6695690d495ff7b2ffb6dd78db4ae9b9639dee67 Mon Sep 17 00:00:00 2001 From: Sebastian Widua Date: Sun, 31 Jan 2021 12:19:09 +0100 Subject: [PATCH] Fix small typo --- library/alloc/src/string.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 9b0b480a7e925..3218b3535c970 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.