about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Mabileau <paul.mabileau@harfanglab.fr>2025-05-17 02:09:06 +0200
committerPaul Mabileau <paul.mabileau@harfanglab.fr>2025-05-17 02:09:06 +0200
commitd29d1a332bc44b461859ccc756d53cbd81cbea0e (patch)
tree017f83498f2bc0e10e6ada98e456fa95e6e44379
parent16d2276fa6fccb0cc239a542d4c3f0eb46f660ec (diff)
downloadrust-d29d1a332bc44b461859ccc756d53cbd81cbea0e.tar.gz
rust-d29d1a332bc44b461859ccc756d53cbd81cbea0e.zip
Docs(lib/alloc/vec): Add the missing `an` to `extract_if`'s first sentence
As inspired by the equivalent methods from other collection types.

Signed-off-by: Paul Mabileau <paul.mabileau@harfanglab.fr>
-rw-r--r--library/alloc/src/vec/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index 59879f23d78..4d03ca63ec8 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -3648,7 +3648,7 @@ impl<T, A: Allocator> Vec<T, A> {
         Splice { drain: self.drain(range), replace_with: replace_with.into_iter() }
     }
 
-    /// Creates an iterator which uses a closure to determine if element in the range should be removed.
+    /// Creates an iterator which uses a closure to determine if an element in the range should be removed.
     ///
     /// If the closure returns true, then the element is removed and yielded.
     /// If the closure returns false, the element will remain in the vector and will not be yielded