diff options
| author | Bastian Kauschke <bastian_kauschke@hotmail.de> | 2020-03-22 16:00:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-22 16:00:51 +0100 |
| commit | d068545bfb7364e8409355e98f8c579e0930750b (patch) | |
| tree | f06fc072ecc248d7755d5a408e0cf38adb74d1b8 /src/liballoc | |
| parent | ecf301d987ed944ef96f627757a0fc58608ff1bb (diff) | |
| download | rust-d068545bfb7364e8409355e98f8c579e0930750b.tar.gz rust-d068545bfb7364e8409355e98f8c579e0930750b.zip | |
update `make_contiguous` docs
Co-Authored-By: Amanieu d'Antras <amanieu@gmail.com>
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/collections/vec_deque.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs index b9d91876db3..02681e06d31 100644 --- a/src/liballoc/collections/vec_deque.rs +++ b/src/liballoc/collections/vec_deque.rs @@ -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 /// |
