update `make_contiguous` docs

Co-Authored-By: Amanieu d'Antras <amanieu@gmail.com>
This commit is contained in:
Bastian Kauschke 2020-03-22 16:00:51 +01:00 committed by GitHub
parent ecf301d987
commit d068545bfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -2054,7 +2054,9 @@ impl<T> VecDeque<T> {
/// This method does not allocate and does not change the order of the inserted elements.
/// As it returns a mutable slice, this can be used to sort or binary search a deque.
///
/// 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
/// [`as_slices_mut`](#method.as_slices_mut) methods will return the entire contents of the
/// `VecDeque` in a single slice.
///
/// # Examples
///