Skip to content

Commit 17a273d

Browse files
MajorBreakfastboats
authored and
boats
committed
Rename async for to for await
1 parent a82e5dd commit 17a273d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0000-async_await.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,14 +571,14 @@ There are a couple of possible solutions:
571571
This is left as an unresolved question to find another solution or decide which
572572
of these is least bad.
573573

574-
## `async for` and processing streams
574+
## `for await` and processing streams
575575

576576
Another extension left out of the RFC for now is the ability to process streams
577-
using a for loop. One could imagine a construct like `async for`, which takes
577+
using a for loop. One could imagine a construct like `for await`, which takes
578578
an `IntoStream` instead of an `IntoIterator`:
579579

580580
```rust
581-
async for value in stream {
581+
for await value in stream {
582582
println!("{}", value);
583583
}
584584
```

0 commit comments

Comments
 (0)