From 23e1b570d77df9eb2e5eeee74f6540630e39998d Mon Sep 17 00:00:00 2001 From: Pierre Allix Date: Sun, 17 Mar 2024 15:57:00 +0100 Subject: [PATCH] Improve wording of `Vec::swap_remove` --- library/alloc/src/vec/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs index f2f42e63d6b0b..db56b8d07c71f 100644 --- a/library/alloc/src/vec/mod.rs +++ b/library/alloc/src/vec/mod.rs @@ -1462,7 +1462,7 @@ impl Vec { /// /// 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