We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a91a5b4 + 6695690 commit b3060a0Copy full SHA for b3060a0
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