1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

edit demo code

This commit is contained in:
CntChen 2016-01-25 12:48:40 +08:00
parent ed283d0207
commit 9fb9439d89

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';
} }