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