Skip to content

Commit

Permalink
Merge pull request #12 from mariusschulz/patch-1
Browse files Browse the repository at this point in the history
Fixes tiny typo
  • Loading branch information
bevacqua committed Jun 19, 2017
2 parents 0b341be + e9cc498 commit 6a11e1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.markdown
Expand Up @@ -246,7 +246,7 @@ Apologies about that long table of contents, and here we go.
- Generator functions are a special kind of _iterator_ that can be declared using the `function* generator () {}` syntax
- Generator functions use `yield` to emit an element sequence
- Generator functions can also use `yield*` to delegate to another generator function _-- or any iterable object_
- Generator functions return a generator object that's adheres to both the _iterable_ and _iterator_ protocols
- Generator functions return a generator object that adheres to both the _iterable_ and _iterator_ protocols
- Given `g = generator()`, `g` adheres to the iterable protocol because `g[Symbol.iterator]` is a method
- Given `g = generator()`, `g` adheres to the iterator protocol because `g.next` is a method
- The iterator for a generator object `g` is the generator itself: `g[Symbol.iterator]() === g`
Expand Down

0 comments on commit 6a11e1d

Please sign in to comment.