]> git.lizzy.rs Git - rust.git/commitdiff
update `make_contiguous` docs
authorBastian Kauschke <bastian_kauschke@hotmail.de>
Sun, 22 Mar 2020 15:00:51 +0000 (16:00 +0100)
committerGitHub <noreply@github.com>
Sun, 22 Mar 2020 15:00:51 +0000 (16:00 +0100)
Co-Authored-By: Amanieu d'Antras <amanieu@gmail.com>
src/liballoc/collections/vec_deque.rs

index b9d91876db323803782d1364023b09c2c651bd78..02681e06d313b3cfbde4aadbeaf10ff690f23a54 100644 (file)
@@ -2054,7 +2054,9 @@ pub fn resize_with(&mut self, new_len: usize, generator: impl FnMut() -> 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
     ///