about summary refs log tree commit diff
path: root/library/alloc/src
diff options
context:
space:
mode:
authorIvan Tham <pickfire@riseup.net>2020-08-29 18:21:47 +0800
committerGitHub <noreply@github.com>2020-08-29 18:21:47 +0800
commitd504d553f101bd36aebed28122d43e9fcae0b60e (patch)
tree634ce0f6c81b06bf3e80de39a23dbb00b8a08252 /library/alloc/src
parent1dc748fb3d2c54f536e6abd74f1ad34b3624f640 (diff)
downloadrust-d504d553f101bd36aebed28122d43e9fcae0b60e.tar.gz
rust-d504d553f101bd36aebed28122d43e9fcae0b60e.zip
Keep doc standard for Vec DrainFilter
Diffstat (limited to 'library/alloc/src')
-rw-r--r--library/alloc/src/vec.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/alloc/src/vec.rs b/library/alloc/src/vec.rs
index b4ad238680f..c024ef7c17d 100644
--- a/library/alloc/src/vec.rs
+++ b/library/alloc/src/vec.rs
@@ -3026,7 +3026,10 @@ impl<T> Drain<'_, T> {
     }
 }
 
-/// An iterator produced by calling `drain_filter` on Vec.
+/// A draining iterator with filter predicate for `Vec`.
+///
+/// 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>