Skip to content

Commit

Permalink
Unrolled build for rust-lang#122642
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#122642 - pallix:improve-wording-for-vec-swap_remove, r=Amanieu

Improve wording of `Vec::swap_remove`

This improve the wording for  `Vec::swap_remove`.
  • Loading branch information
rust-timer authored Mar 18, 2024
2 parents d31b6fb + 23e1b57 commit d455a92
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 d455a92

Please sign in to comment.