Skip to content

Commit 600b2d3

Browse files
Rollup merge of rust-lang#81589 - Seppel3210:master, r=jonas-schievink
Fix small typo in string.rs
2 parents 36af32a + 6695690 commit 600b2d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ impl String {
972972
self.vec.try_reserve(additional)
973973
}
974974

975-
/// Tries to reserves the minimum capacity for exactly `additional` more elements to
975+
/// Tries to reserve the minimum capacity for exactly `additional` more elements to
976976
/// be inserted in the given `String`. After calling `reserve_exact`,
977977
/// capacity will be greater than or equal to `self.len() + additional`.
978978
/// Does nothing if the capacity is already sufficient.

0 commit comments

Comments
 (0)