stream: fix documentation on filter_map (#2511)

This commit is contained in:
Tom Ciborski 2020-05-11 06:08:05 +09:00 committed by GitHub
parent adce911b02
commit a75fe38ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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