mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Improve wording of Vec::swap_remove
This commit is contained in:
parent
a0c20d52e0
commit
23e1b570d7
@ -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