File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
library/alloc/src/collections Expand file tree Collapse file tree 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> {
685685 }
686686
687687 /// 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 `,
689689 /// capacity will be greater than or equal to `self.len() + additional`.
690690 /// Does nothing if the capacity is already sufficient.
691691 ///
@@ -727,7 +727,7 @@ impl<T> VecDeque<T> {
727727
728728 /// Tries to reserve capacity for at least `additional` more elements to be inserted
729729 /// 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
731731 /// greater than or equal to `self.len() + additional`. Does nothing if
732732 /// capacity is already sufficient.
733733 ///
You can’t perform that action at this time.
0 commit comments