Rollup merge of #91105 - jplatte:stream-docs, r=dtolnay

Fix method name reference in stream documentation
This commit is contained in:
Matthias Krüger 2021-12-10 22:40:31 +01:00 committed by GitHub
commit 60aa03aa71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,9 +114,9 @@
//! # Laziness //! # Laziness
//! //!
//! Streams are *lazy*. This means that just creating a stream doesn't _do_ a //! 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 //! whole lot. Nothing really happens until you call `poll_next`. This is
//! source of confusion when creating a stream solely for its side effects. The //! sometimes a source of confusion when creating a stream solely for its side
//! compiler will warn us about this kind of behavior: //! effects. The compiler will warn us about this kind of behavior:
//! //!
//! ```text //! ```text
//! warning: unused result that must be used: streams do nothing unless polled //! warning: unused result that must be used: streams do nothing unless polled