mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
Merge pull request #132 from CntChen/gh-pages
修正generator.md yield* 示例代码的一个误解
This commit is contained in:
+1
-1
@@ -735,7 +735,7 @@ function* bar() {
|
||||
function* bar() {
|
||||
yield 'x';
|
||||
for (let v of foo()) {
|
||||
console.log(v);
|
||||
yield v;
|
||||
}
|
||||
yield 'y';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user