Skip to content

Commit

Permalink
Same typos in vec_deque
Browse files Browse the repository at this point in the history
  • Loading branch information
ama0 committed Sep 2, 2020
1 parent b670064 commit dbe50f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/collections/vec_deque.rs
Expand Up @@ -685,7 +685,7 @@ impl<T> VecDeque<T> {
}

/// Tries to reserve the minimum capacity for exactly `additional` more elements to
/// be inserted in the given `VecDeque<T>`. After calling `reserve_exact`,
/// be inserted in the given `VecDeque<T>`. After calling `try_reserve_exact`,
/// capacity will be greater than or equal to `self.len() + additional`.
/// Does nothing if the capacity is already sufficient.
///
Expand Down Expand Up @@ -727,7 +727,7 @@ impl<T> VecDeque<T> {

/// Tries to reserve capacity for at least `additional` more elements to be inserted
/// in the given `VecDeque<T>`. The collection may reserve more space to avoid
/// frequent reallocations. After calling `reserve`, capacity will be
/// frequent reallocations. After calling `try_reserve`, capacity will be
/// greater than or equal to `self.len() + additional`. Does nothing if
/// capacity is already sufficient.
///
Expand Down

0 comments on commit dbe50f5

Please sign in to comment.