Skip to content

Commit

Permalink
stream: fix documentation on filter_map (#2511)
Browse files Browse the repository at this point in the history
  • Loading branch information
episage authored May 10, 2020
1 parent adce911 commit a75fe38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ pub trait StreamExt: Stream {
/// As values of this stream are made available, the provided function will
/// be run on them. If the predicate `f` resolves to
/// [`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
/// wrapped version of it, similar to [`Iterator::filter_map`] method in the
Expand Down

0 comments on commit a75fe38

Please sign in to comment.