Skip to content

Commit 6695690

Browse files
committed
Fix small typo
1 parent 9b32429 commit 6695690

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)