Skip to content

Commit

Permalink
Improve wording of Vec::swap_remove
Browse files Browse the repository at this point in the history
  • Loading branch information
pallix committed Mar 17, 2024
1 parent a0c20d5 commit 62370d6
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 @@ -1462,8 +1462,8 @@ impl<T, A: Allocator> Vec<T, A> {
///
/// The removed element is replaced by the last element of the vector.
///
/// This does not preserve ordering, but is *O*(1).
/// If you need to preserve the element order, use [`remove`] instead.
/// This does not preserve ordering of the remaining elements, but is *O*(1).
/// If you need to preserve the elements order, use [`remove`] instead.
///
/// [`remove`]: Vec::remove
///
Expand Down

0 comments on commit 62370d6

Please sign in to comment.