From b39c1278b21f2ac951b94a69169c6488506b981d Mon Sep 17 00:00:00 2001 From: Terry Braun Date: Mon, 21 Apr 2014 11:51:14 -0400 Subject: [PATCH] Update README.md The example uses the generator function (count) where it should be using the iterator (counter.next().value --- examples/async-generators/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/async-generators/README.md b/examples/async-generators/README.md index 46dc310e..c409f0b0 100644 --- a/examples/async-generators/README.md +++ b/examples/async-generators/README.md @@ -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