Fix method name reference in stream documentation

This commit is contained in:
Jonas Platte 2021-11-21 11:57:38 +01:00
parent b8e5ab20ed
commit 64cca297cb
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

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