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
+1 -1
View File
@@ -735,7 +735,7 @@ function* bar() {
function* bar() {
yield 'x';
for (let v of foo()) {
console.log(v);
yield v;
}
yield 'y';
}