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 23e1b57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/vec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ 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).
/// This does not preserve ordering of the remaining elements, but is *O*(1).
/// If you need to preserve the element order, use [`remove`] instead.
///
/// [`remove`]: Vec::remove
Expand Down

0 comments on commit 23e1b57

Please sign in to comment.