@@ -906,7 +906,7 @@ impl<T> VecDeque<T> {
906
906
}
907
907
}
908
908
909
- /// Clears the buffer , removing all values.
909
+ /// Clears the `VecDeque` , removing all values.
910
910
///
911
911
/// # Examples
912
912
///
@@ -1624,18 +1624,18 @@ impl<T> VecDeque<T> {
1624
1624
return elem;
1625
1625
}
1626
1626
1627
- /// Splits the collection into two at the given index.
1627
+ /// Splits the `VecDeque` into two at the given index.
1628
1628
///
1629
- /// Returns a newly allocated `Self `. `self` contains elements `[0, at)`,
1630
- /// and the returned `Self ` contains elements `[at, len)`.
1629
+ /// Returns a newly allocated `VecDeque `. `self` contains elements `[0, at)`,
1630
+ /// and the returned `VecDeque ` contains elements `[at, len)`.
1631
1631
///
1632
1632
/// Note that the capacity of `self` does not change.
1633
1633
///
1634
1634
/// Element at index 0 is the front of the queue.
1635
1635
///
1636
1636
/// # Panics
1637
1637
///
1638
- /// Panics if `at > len`
1638
+ /// Panics if `at > len`.
1639
1639
///
1640
1640
/// # Examples
1641
1641
///
@@ -1815,7 +1815,8 @@ impl<T> VecDeque<T> {
1815
1815
1816
1816
impl < T : Clone > VecDeque < T > {
1817
1817
/// Modifies the `VecDeque` in-place so that `len()` is equal to new_len,
1818
- /// either by removing excess elements or by appending clones of `value` to the back.
1818
+ /// either by removing excess elements from the back or by appending clones of `value`
1819
+ /// to the back.
1819
1820
///
1820
1821
/// # Examples
1821
1822
///
@@ -2390,7 +2391,7 @@ impl<T> IntoIterator for VecDeque<T> {
2390
2391
type Item = T ;
2391
2392
type IntoIter = IntoIter < T > ;
2392
2393
2393
- /// Consumes the list into a front-to-back iterator yielding elements by
2394
+ /// Consumes the `VecDeque` into a front-to-back iterator yielding elements by
2394
2395
/// value.
2395
2396
fn into_iter ( self ) -> IntoIter < T > {
2396
2397
IntoIter { inner : self }
0 commit comments