Skip to content

Commit

Permalink
Rollup merge of rust-lang#76055 - pickfire:patch-9, r=jyn514
Browse files Browse the repository at this point in the history
Keep doc standard for Vec DrainFilter

r? @jyn514
  • Loading branch information
matklad authored Aug 31, 2020
2 parents 1403170 + be8b5eb commit 9d3208a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/alloc/src/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 9d3208a

Please sign in to comment.