Skip to content

Commit

Permalink
Merge pull request kriskowal#518 from talkingtab/patch-1
Browse files Browse the repository at this point in the history
Fix the use of count.next() in README.md
  • Loading branch information
kriskowal committed Apr 21, 2014
2 parents 93c0069 + b39c127 commit 9a3d722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/async-generators/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ function* count() {
}

var counter = count();
count.next().value === 0;
count.next().value === 1;
count.next().value === 2;
counter.next().value === 0;
counter.next().value === 1;
counter.next().value === 2;
```

`yield` can also return a value, if the `next` method of the generator is
Expand Down

0 comments on commit 9a3d722

Please sign in to comment.