Skip to content

Commit c0fcab7

Browse files
authored
Fix doc wording (#91)
1 parent e1d440f commit c0fcab7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

async-stream/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ fn bind_and_accept(addr: SocketAddr)
138138
## Implementation
139139

140140
The `stream!` and `try_stream!` macros are implemented using proc macros.
141-
The macro searches the syntax tree for instances of `sender.send($expr)` and
141+
The macro searches the syntax tree for instances of `yield $expr` and
142142
transforms them into `sender.send($expr).await`.
143143

144144
The stream uses a lightweight sender to send values from the stream

async-stream/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
//! # Implementation
145145
//!
146146
//! The `stream!` and `try_stream!` macros are implemented using proc macros.
147-
//! The macro searches the syntax tree for instances of `sender.send($expr)` and
147+
//! The macro searches the syntax tree for instances of `yield $expr` and
148148
//! transforms them into `sender.send($expr).await`.
149149
//!
150150
//! The stream uses a lightweight sender to send values from the stream

0 commit comments

Comments
 (0)