Skip to content

Commit 18c5f4e

Browse files
committed
Match docs for VecDeque truncate to Vec truncate
1 parent eb5ef81 commit 18c5f4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/liballoc/collections/vec_deque.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,8 @@ impl<T> VecDeque<T> {
835835
}
836836
}
837837

838-
/// Shortens the `VecDeque`, dropping excess elements from the back.
838+
/// Shortens the `VecDeque`, keeping the first `len` elements and dropping
839+
/// the rest.
839840
///
840841
/// If `len` is greater than the `VecDeque`'s current length, this has no
841842
/// effect.

0 commit comments

Comments
 (0)