We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
make_contiguous
1 parent ecf301d commit d068545Copy full SHA for d068545
src/liballoc/collections/vec_deque.rs
@@ -2054,7 +2054,9 @@ impl<T> VecDeque<T> {
2054
/// This method does not allocate and does not change the order of the inserted elements.
2055
/// As it returns a mutable slice, this can be used to sort or binary search a deque.
2056
///
2057
- /// In case `self` is already contiguous, [`as_slices`](#method.as_slices) can be used to get immutable access.
+ /// Once the internal storage is contiguous, the [`as_slices`](#method.as_slices) and
2058
+ /// [`as_slices_mut`](#method.as_slices_mut) methods will return the entire contents of the
2059
+ /// `VecDeque` in a single slice.
2060
2061
/// # Examples
2062
0 commit comments