File tree 1 file changed +2
-2
lines changed
library/alloc/src/collections
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -685,7 +685,7 @@ impl<T> VecDeque<T> {
685
685
}
686
686
687
687
/// Tries to reserve the minimum capacity for exactly `additional` more elements to
688
- /// be inserted in the given `VecDeque<T>`. After calling `reserve_exact `,
688
+ /// be inserted in the given `VecDeque<T>`. After calling `try_reserve_exact `,
689
689
/// capacity will be greater than or equal to `self.len() + additional`.
690
690
/// Does nothing if the capacity is already sufficient.
691
691
///
@@ -727,7 +727,7 @@ impl<T> VecDeque<T> {
727
727
728
728
/// Tries to reserve capacity for at least `additional` more elements to be inserted
729
729
/// in the given `VecDeque<T>`. The collection may reserve more space to avoid
730
- /// frequent reallocations. After calling `reserve `, capacity will be
730
+ /// frequent reallocations. After calling `try_reserve `, capacity will be
731
731
/// greater than or equal to `self.len() + additional`. Does nothing if
732
732
/// capacity is already sufficient.
733
733
///
You can’t perform that action at this time.
0 commit comments