Skip to content

Commit 230f6a5

Browse files
authored
Merge pull request #7 from bestouff/patch-1
typos
2 parents 2c4e068 + bc4f615 commit 230f6a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

text/0000-experimental-coroutines.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ targeted at generating the state machine we wanted to write by hand above,
188188
solving our problem!
189189

190190
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
192192
language primitives like iterators. As a result let's take a look at what a
193193
hypothetical translation of our original `#[async]` function might look like.
194194
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> {
213213

214214
let mut stream = io.lines();
215215
loop {
216-
let item = {
216+
let line = {
217217
match stream.poll()? {
218218
Async::Ready(Some(e)) => e,
219219
Async::Ready(None) => break,
@@ -347,7 +347,7 @@ landing are much more minimal than a new stable language feature being added.
347347
Despite this, however, there is also a desire to think early on about corner
348348
cases that language features run into and plan for a sort of reference test
349349
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,
351351
covering:
352352

353353
##### Basic usage

0 commit comments

Comments
 (0)