Skip to content

Commit 223c23c

Browse files
authored
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`.
2 parents 9802486 + 23e1b57 commit 223c23c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ impl<T, A: Allocator> Vec<T, A> {
14621462
///
14631463
/// The removed element is replaced by the last element of the vector.
14641464
///
1465-
/// This does not preserve ordering, but is *O*(1).
1465+
/// This does not preserve ordering of the remaining elements, but is *O*(1).
14661466
/// If you need to preserve the element order, use [`remove`] instead.
14671467
///
14681468
/// [`remove`]: Vec::remove

0 commit comments

Comments
 (0)