Skip to content

Commit d504d55

Browse files
authored
Keep doc standard for Vec DrainFilter
1 parent 1dc748f commit d504d55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/alloc/src/vec.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -3026,7 +3026,10 @@ impl<T> Drain<'_, T> {
30263026
}
30273027
}
30283028

3029-
/// An iterator produced by calling `drain_filter` on Vec.
3029+
/// A draining iterator with filter predicate for `Vec`.
3030+
///
3031+
/// This struct is created by [`Vec::drain_filter()`].
3032+
/// See its documentation for more.
30303033
#[unstable(feature = "drain_filter", reason = "recently added", issue = "43244")]
30313034
#[derive(Debug)]
30323035
pub struct DrainFilter<'a, T, F>

0 commit comments

Comments
 (0)