We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b32429 commit 6695690Copy full SHA for 6695690
library/alloc/src/string.rs
@@ -972,7 +972,7 @@ impl String {
972
self.vec.try_reserve(additional)
973
}
974
975
- /// Tries to reserves the minimum capacity for exactly `additional` more elements to
+ /// Tries to reserve the minimum capacity for exactly `additional` more elements to
976
/// be inserted in the given `String`. After calling `reserve_exact`,
977
/// capacity will be greater than or equal to `self.len() + additional`.
978
/// Does nothing if the capacity is already sufficient.
0 commit comments