Skip to content

Commit d068545

Browse files
lcnrAmanieu
andauthored
update make_contiguous docs
Co-Authored-By: Amanieu d'Antras <[email protected]>
1 parent ecf301d commit d068545

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/liballoc/collections/vec_deque.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,9 @@ impl<T> VecDeque<T> {
20542054
/// This method does not allocate and does not change the order of the inserted elements.
20552055
/// As it returns a mutable slice, this can be used to sort or binary search a deque.
20562056
///
2057-
/// In case `self` is already contiguous, [`as_slices`](#method.as_slices) can be used to get immutable access.
2057+
/// 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.
20582060
///
20592061
/// # Examples
20602062
///

0 commit comments

Comments
 (0)