1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 19:22:21 +00:00

Merge pull request #132 from CntChen/gh-pages

修正generator.md yield* 示例代码的一个误解
This commit is contained in:
Ruan YiFeng 2016-01-26 08:53:08 +08:00
commit f4f7f6e9e6

View File

@ -735,7 +735,7 @@ function* bar() {
function* bar() { function* bar() {
yield 'x'; yield 'x';
for (let v of foo()) { for (let v of foo()) {
console.log(v); yield v;
} }
yield 'y'; yield 'y';
} }