mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +00:00
stream: fix documentation on filter_map (#2511)
This commit is contained in:
parent
adce911b02
commit
a75fe38ba5
@ -303,7 +303,7 @@ pub trait StreamExt: Stream {
|
|||||||
/// As values of this stream are made available, the provided function will
|
/// As values of this stream are made available, the provided function will
|
||||||
/// be run on them. If the predicate `f` resolves to
|
/// be run on them. If the predicate `f` resolves to
|
||||||
/// [`Some(item)`](Some) then the stream will yield the value `item`, but if
|
/// [`Some(item)`](Some) then the stream will yield the value `item`, but if
|
||||||
/// it resolves to [`None`] then the next value will be produced.
|
/// it resolves to [`None`], then the value value will be skipped.
|
||||||
///
|
///
|
||||||
/// Note that this function consumes the stream passed into it and returns a
|
/// Note that this function consumes the stream passed into it and returns a
|
||||||
/// wrapped version of it, similar to [`Iterator::filter_map`] method in the
|
/// wrapped version of it, similar to [`Iterator::filter_map`] method in the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user