Skip to content

Commit

Permalink
Fix doc wording (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
peng1999 authored Feb 18, 2023
1 parent e1d440f commit c0fcab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion async-stream/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ fn bind_and_accept(addr: SocketAddr)
## Implementation

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

The stream uses a lightweight sender to send values from the stream
Expand Down
2 changes: 1 addition & 1 deletion async-stream/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
//! # Implementation
//!
//! The `stream!` and `try_stream!` macros are implemented using proc macros.
//! The macro searches the syntax tree for instances of `sender.send($expr)` and
//! The macro searches the syntax tree for instances of `yield $expr` and
//! transforms them into `sender.send($expr).await`.
//!
//! The stream uses a lightweight sender to send values from the stream
Expand Down

0 comments on commit c0fcab7

Please sign in to comment.