Skip to content

Commit b3060a0

Browse files
Rollup merge of #81589 - Seppel3210:master, r=jonas-schievink
Fix small typo in string.rs
2 parents a91a5b4 + 6695690 commit b3060a0

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)