File tree 2 files changed +2
-2
lines changed
library/std/src/collections/hash
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -759,7 +759,7 @@ where
759
759
760
760
/// Tries to reserve capacity for at least `additional` more elements to be inserted
761
761
/// in the `HashMap`. The collection may reserve more space to speculatively
762
- /// avoid frequent reallocations. After calling `reserve `,
762
+ /// avoid frequent reallocations. After calling `try_reserve `,
763
763
/// capacity will be greater than or equal to `self.len() + additional` if
764
764
/// it returns `Ok(())`.
765
765
/// Does nothing if capacity is already sufficient.
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ where
462
462
463
463
/// Tries to reserve capacity for at least `additional` more elements to be inserted
464
464
/// in the `HashSet`. The collection may reserve more space to speculatively
465
- /// avoid frequent reallocations. After calling `reserve `,
465
+ /// avoid frequent reallocations. After calling `try_reserve `,
466
466
/// capacity will be greater than or equal to `self.len() + additional` if
467
467
/// it returns `Ok(())`.
468
468
/// Does nothing if capacity is already sufficient.
You can’t perform that action at this time.
0 commit comments