Skip to content

Commit dbe50f5

Browse files
authored
Same typos in vec_deque
1 parent b670064 commit dbe50f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/alloc/src/collections/vec_deque.rs

+2-2
Original file line numberDiff line numberDiff 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
///

0 commit comments

Comments
 (0)