Skip to content

Commit

Permalink
edit std::vec::Vec::truncate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
52 committed Sep 16, 2023
1 parent 42dead4 commit d1ff5e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1110,8 +1110,8 @@ impl<T, A: Allocator> Vec<T, A> {
/// Shortens the vector, keeping the first `len` elements and dropping
/// the rest.
///
/// If `len` is greater than the vector's current length, this has no
/// effect.
/// If `len` is greater or equal to the vector's current length, this has
/// no effect.
///
/// The [`drain`] method can emulate `truncate`, but causes the excess
/// elements to be returned instead of dropped.
Expand Down

0 comments on commit d1ff5e1

Please sign in to comment.