Rollup merge of #76055 - pickfire:patch-9, r=jyn514

Keep doc standard for Vec DrainFilter

r? @jyn514
This commit is contained in:
Aleksey Kladov 2020-08-31 12:51:49 +02:00 committed by GitHub
commit af1f46cf99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3024,7 +3024,10 @@ impl<T> Drain<'_, T> {
}
}
/// An iterator produced by calling `drain_filter` on 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.
#[unstable(feature = "drain_filter", reason = "recently added", issue = "43244")]
#[derive(Debug)]
pub struct DrainFilter<'a, T, F>