Skip to content

Commit d29d1a3

Browse files
committed
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>
1 parent 16d2276 commit d29d1a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3648,7 +3648,7 @@ impl<T, A: Allocator> Vec<T, A> {
36483648
Splice { drain: self.drain(range), replace_with: replace_with.into_iter() }
36493649
}
36503650

3651-
/// Creates an iterator which uses a closure to determine if element in the range should be removed.
3651+
/// Creates an iterator which uses a closure to determine if an element in the range should be removed.
36523652
///
36533653
/// If the closure returns true, then the element is removed and yielded.
36543654
/// If the closure returns false, the element will remain in the vector and will not be yielded

0 commit comments

Comments
 (0)