From a75fe38ba5ffeb2e15c70b01ebfed81143ab2bce Mon Sep 17 00:00:00 2001 From: Tom Ciborski Date: Mon, 11 May 2020 06:08:05 +0900 Subject: [PATCH] stream: fix documentation on filter_map (#2511) --- tokio/src/stream/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/stream/mod.rs b/tokio/src/stream/mod.rs index a59bdfcd48f..22cba8ee155 100644 --- a/tokio/src/stream/mod.rs +++ b/tokio/src/stream/mod.rs @@ -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