Skip to content

Commit 28cb6a2

Browse files
authored
docs: futures-util::StreamExt: cite map and then in docs (#2756)
1 parent e46ea52 commit 28cb6a2

File tree

1 file changed

+6
-0
lines changed
  • futures-util/src/stream/stream

1 file changed

+6
-0
lines changed

futures-util/src/stream/stream/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ pub trait StreamExt: Stream {
337337
/// wrapped version of it, similar to the existing `map` methods in the
338338
/// standard library.
339339
///
340+
/// See [`StreamExt::then`](Self::then) if you want to use a closure that
341+
/// returns a future instead of a value.
342+
///
340343
/// # Examples
341344
///
342345
/// ```
@@ -481,6 +484,9 @@ pub trait StreamExt: Stream {
481484
/// Note that this function consumes the stream passed into it and returns a
482485
/// wrapped version of it.
483486
///
487+
/// See [`StreamExt::map`](Self::map) if you want to use a closure that
488+
/// returns a value instead of a future.
489+
///
484490
/// # Examples
485491
///
486492
/// ```

0 commit comments

Comments
 (0)