about summary refs log tree commit diff
path: root/library/core/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2021-12-10 22:40:31 +0100
committerGitHub <noreply@github.com>2021-12-10 22:40:31 +0100
commit60aa03aa71e6057bded100d24519e6309c2152d6 (patch)
tree8c48bc77d6f045df93c0a5c4a9b742865697aac3 /library/core/src
parent616f9efebb49a36bce34aad2a2badb3594a18b28 (diff)
parent64cca297cb9028c5cfc6b9cb9ab82ed5129b0841 (diff)
downloadrust-60aa03aa71e6057bded100d24519e6309c2152d6.tar.gz
rust-60aa03aa71e6057bded100d24519e6309c2152d6.zip
Rollup merge of #91105 - jplatte:stream-docs, r=dtolnay
Fix method name reference in stream documentation
Diffstat (limited to 'library/core/src')
-rw-r--r--library/core/src/stream/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/stream/mod.rs b/library/core/src/stream/mod.rs
index 58dc8e1e5e6..b59a46d5f3a 100644
--- a/library/core/src/stream/mod.rs
+++ b/library/core/src/stream/mod.rs
@@ -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