diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-18 22:24:38 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-18 22:24:38 +0100 |
| commit | 223c23c63fba94b77a460fef84f48d86b7247888 (patch) | |
| tree | 58812789db04deeebffbc61b5ceba3aacf6af992 | |
| parent | 980248605a6e3af15e64b93285654fb4e15b1015 (diff) | |
| parent | 23e1b570d77df9eb2e5eeee74f6540630e39998d (diff) | |
| download | rust-223c23c63fba94b77a460fef84f48d86b7247888.tar.gz rust-223c23c63fba94b77a460fef84f48d86b7247888.zip | |
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`.
| -rw-r--r-- | library/alloc/src/vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index f2f42e63d6b..db56b8d07c7 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -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 |
