From be8b5eb529adbb0e62dcc8872918e9c09aba56a4 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Sat, 29 Aug 2020 22:39:34 +0800 Subject: [PATCH] Reuse description from drain_filter Co-authored-by: Joshua Nelson --- library/alloc/src/vec.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs index 7be5f97340e66..12441ccd41f24 100644 --- a/library/alloc/src/vec.rs +++ b/library/alloc/src/vec.rs @@ -3026,7 +3026,7 @@ impl Drain<'_, T> { } } -/// A draining iterator with filter predicate for `Vec`. +/// An iterator which uses a closure to determine if an element should be removed. /// /// This struct is created by [`Vec::drain_filter`]. /// See its documentation for more.