diff options
| author | Pierre Allix <pierre.allix.work@gmail.com> | 2024-03-17 15:57:00 +0100 |
|---|---|---|
| committer | Pierre Allix <pierre.allix.work@gmail.com> | 2024-03-17 18:27:02 +0100 |
| commit | 23e1b570d77df9eb2e5eeee74f6540630e39998d (patch) | |
| tree | 001e9f94bcc13ad85252cf5f7203f797d88920a0 /library/alloc | |
| parent | a0c20d52e0e83f0bdd5c4f24295def8b276de314 (diff) | |
| download | rust-23e1b570d77df9eb2e5eeee74f6540630e39998d.tar.gz rust-23e1b570d77df9eb2e5eeee74f6540630e39998d.zip | |
Improve wording of `Vec::swap_remove`
Diffstat (limited to 'library/alloc')
| -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 |
