about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorCharles Gleason <charles_gleason@alumni.brown.edu>2019-10-28 17:52:50 -0400
committerCharles Gleason <charles_gleason@alumni.brown.edu>2019-10-29 10:01:42 -0400
commit18c5f4e7f27aa3180d2b21f8383f3b0ba4f2bc73 (patch)
treee7ef79cf1e61ff059909309f451651b3e48e8ffa /src/liballoc
parenteb5ef813f0d6e3fe8edd3abb046a18f5b1a8cc48 (diff)
downloadrust-18c5f4e7f27aa3180d2b21f8383f3b0ba4f2bc73.tar.gz
rust-18c5f4e7f27aa3180d2b21f8383f3b0ba4f2bc73.zip
Match docs for VecDeque truncate to Vec truncate
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/collections/vec_deque.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs
index 8f3dfabd888..61a2f620d29 100644
--- a/src/liballoc/collections/vec_deque.rs
+++ b/src/liballoc/collections/vec_deque.rs
@@ -835,7 +835,8 @@ impl<T> VecDeque<T> {
         }
     }
 
-    /// Shortens the `VecDeque`, dropping excess elements from the back.
+    /// Shortens the `VecDeque`, keeping the first `len` elements and dropping
+    /// the rest.
     ///
     /// If `len` is greater than the `VecDeque`'s current length, this has no
     /// effect.