Merge pull request #1048 from DeveloperDavo/master

Update article.md
This commit is contained in:
Ilya Kantor 2019-06-12 09:48:33 +03:00 committed by GitHub
commit f6e2c899c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -458,7 +458,7 @@ If we don't catch the error there, then, as usual, it falls through to the outer
## Summary ## Summary
- Generators are created by generator functions `function*(…) {…}`. - Generators are created by generator functions `function* f(…) {…}`.
- Inside generators (only) there exists a `yield` operator. - Inside generators (only) there exists a `yield` operator.
- The outer code and the generator may exchange results via `next/yield` calls. - The outer code and the generator may exchange results via `next/yield` calls.