Same typos in vec_deque

This commit is contained in:
Anton 2020-09-02 14:09:42 +02:00 committed by GitHub
parent b67006422e
commit dbe50f5c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -685,7 +685,7 @@ impl<T> VecDeque<T> {
} }
/// Tries to reserve the minimum capacity for exactly `additional` more elements to /// 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`. /// capacity will be greater than or equal to `self.len() + additional`.
/// Does nothing if the capacity is already sufficient. /// Does nothing if the capacity is already sufficient.
/// ///
@ -727,7 +727,7 @@ impl<T> VecDeque<T> {
/// Tries to reserve capacity for at least `additional` more elements to be inserted /// 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 /// 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 /// greater than or equal to `self.len() + additional`. Does nothing if
/// capacity is already sufficient. /// capacity is already sufficient.
/// ///