Skip to content

Commit 60aa03a

Browse files
authored
Rollup merge of #91105 - jplatte:stream-docs, r=dtolnay
Fix method name reference in stream documentation
2 parents 616f9ef + 64cca29 commit 60aa03a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/stream/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@
114114
//! # Laziness
115115
//!
116116
//! Streams are *lazy*. This means that just creating a stream doesn't _do_ a
117-
//! whole lot. Nothing really happens until you call `next`. This is sometimes a
118-
//! source of confusion when creating a stream solely for its side effects. The
119-
//! compiler will warn us about this kind of behavior:
117+
//! whole lot. Nothing really happens until you call `poll_next`. This is
118+
//! sometimes a source of confusion when creating a stream solely for its side
119+
//! effects. The compiler will warn us about this kind of behavior:
120120
//!
121121
//! ```text
122122
//! warning: unused result that must be used: streams do nothing unless polled

0 commit comments

Comments
 (0)