Skip to content

Commit

Permalink
Rollup merge of #91105 - jplatte:stream-docs, r=dtolnay
Browse files Browse the repository at this point in the history
Fix method name reference in stream documentation
  • Loading branch information
matthiaskrgr committed Dec 10, 2021
2 parents 616f9ef + 64cca29 commit 60aa03a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/core/src/stream/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@
//! # Laziness
//!
//! Streams are *lazy*. This means that just creating a stream doesn't _do_ a
//! whole lot. Nothing really happens until you call `next`. This is sometimes a
//! source of confusion when creating a stream solely for its side effects. The
//! compiler will warn us about this kind of behavior:
//! whole lot. Nothing really happens until you call `poll_next`. This is
//! sometimes a source of confusion when creating a stream solely for its side
//! effects. The compiler will warn us about this kind of behavior:
//!
//! ```text
//! warning: unused result that must be used: streams do nothing unless polled
Expand Down

0 comments on commit 60aa03a

Please sign in to comment.