mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Rollup merge of #122642 - pallix:improve-wording-for-vec-swap_remove, r=Amanieu
Improve wording of `Vec::swap_remove` This improve the wording for `Vec::swap_remove`.
This commit is contained in:
commit
223c23c63f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user