@@ -188,7 +188,7 @@ targeted at generating the state machine we wanted to write by hand above,
188
188
solving our problem!
189
189
190
190
Coroutines are, however, a little lower level than futures themselves. The
191
- stackless coroutine feature can be used not only future futures but also other
191
+ stackless coroutine feature can be used not only for futures but also other
192
192
language primitives like iterators. As a result let's take a look at what a
193
193
hypothetical translation of our original ` #[async] ` function might look like.
194
194
Keep in mind that this is not a specification of syntax, it's just a strawman
@@ -213,7 +213,7 @@ fn print_lines() -> impl Future<Item = (), Error = io::Error> {
213
213
214
214
let mut stream = io . lines ();
215
215
loop {
216
- let item = {
216
+ let line = {
217
217
match stream . poll ()? {
218
218
Async :: Ready (Some (e )) => e ,
219
219
Async :: Ready (None ) => break ,
@@ -347,7 +347,7 @@ landing are much more minimal than a new stable language feature being added.
347
347
Despite this, however, there is also a desire to think early on about corner
348
348
cases that language features run into and plan for a sort of reference test
349
349
suite to exist ahead of time. Along those lines this RFC proposes a list of
350
- tests accompany any initial implementation of coroutines in the compiler,
350
+ tests accompanying any initial implementation of coroutines in the compiler,
351
351
covering:
352
352
353
353
##### Basic usage
0 commit comments