diff options
| author | Charles Gleason <charles_gleason@alumni.brown.edu> | 2019-10-28 17:52:50 -0400 |
|---|---|---|
| committer | Charles Gleason <charles_gleason@alumni.brown.edu> | 2019-10-29 10:01:42 -0400 |
| commit | 18c5f4e7f27aa3180d2b21f8383f3b0ba4f2bc73 (patch) | |
| tree | e7ef79cf1e61ff059909309f451651b3e48e8ffa /src/liballoc | |
| parent | eb5ef813f0d6e3fe8edd3abb046a18f5b1a8cc48 (diff) | |
| download | rust-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.rs | 3 |
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. |
