@@ -635,7 +635,7 @@ impl<T> VecDeque<T> {
635
635
}
636
636
}
637
637
638
- /// Shortens a `VecDeque`, dropping excess elements from the back.
638
+ /// Shortens the `VecDeque`, dropping excess elements from the back.
639
639
///
640
640
/// If `len` is greater than the `VecDeque`'s current length, this has no
641
641
/// effect.
@@ -941,7 +941,7 @@ impl<T> VecDeque<T> {
941
941
a. contains ( x) || b. contains ( x)
942
942
}
943
943
944
- /// Provides a reference to the front element, or `None` if the sequence is
944
+ /// Provides a reference to the front element, or `None` if the `VecDeque` is
945
945
/// empty.
946
946
///
947
947
/// # Examples
@@ -966,7 +966,7 @@ impl<T> VecDeque<T> {
966
966
}
967
967
968
968
/// Provides a mutable reference to the front element, or `None` if the
969
- /// sequence is empty.
969
+ /// `VecDeque` is empty.
970
970
///
971
971
/// # Examples
972
972
///
@@ -993,7 +993,7 @@ impl<T> VecDeque<T> {
993
993
}
994
994
}
995
995
996
- /// Provides a reference to the back element, or `None` if the sequence is
996
+ /// Provides a reference to the back element, or `None` if the `VecDeque` is
997
997
/// empty.
998
998
///
999
999
/// # Examples
@@ -1018,7 +1018,7 @@ impl<T> VecDeque<T> {
1018
1018
}
1019
1019
1020
1020
/// Provides a mutable reference to the back element, or `None` if the
1021
- /// sequence is empty.
1021
+ /// `VecDeque` is empty.
1022
1022
///
1023
1023
/// # Examples
1024
1024
///
@@ -1046,7 +1046,7 @@ impl<T> VecDeque<T> {
1046
1046
}
1047
1047
}
1048
1048
1049
- /// Removes the first element and returns it, or `None` if the sequence is
1049
+ /// Removes the first element and returns it, or `None` if the `VecDeque` is
1050
1050
/// empty.
1051
1051
///
1052
1052
/// # Examples
@@ -1073,7 +1073,7 @@ impl<T> VecDeque<T> {
1073
1073
}
1074
1074
}
1075
1075
1076
- /// Inserts an element first in the sequence .
1076
+ /// Prepends an element to the `VecDeque` .
1077
1077
///
1078
1078
/// # Examples
1079
1079
///
@@ -1096,7 +1096,7 @@ impl<T> VecDeque<T> {
1096
1096
}
1097
1097
}
1098
1098
1099
- /// Appends an element to the back of a buffer
1099
+ /// Appends an element to the back of the `VecDeque`.
1100
1100
///
1101
1101
/// # Examples
1102
1102
///
@@ -1117,7 +1117,7 @@ impl<T> VecDeque<T> {
1117
1117
unsafe { self . buffer_write ( head, value) }
1118
1118
}
1119
1119
1120
- /// Removes the last element from a buffer and returns it, or `None` if
1120
+ /// Removes the last element from the `VecDeque` and returns it, or `None` if
1121
1121
/// it is empty.
1122
1122
///
1123
1123
/// # Examples
0 commit comments