Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/vec/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ where
/// Shortens the bit-vector, keeping the first `new_len` bits and discarding
/// the rest.
///
/// If `len` is greater than the bit-vector’s current length, this has no
/// effect.
/// If `new_len` is greater than the bit-vector’s current length, this
/// has no effect.
///
/// The [`.drain()`] method can emulate `.truncate()`, except that it yields
/// the excess bits rather than discarding them.
Expand Down