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

edit docs/generator

This commit is contained in:
ruanyf 2014-05-23 23:08:51 +08:00
parent 4880c25772
commit bf3d1658a4

View File

@ -221,7 +221,7 @@ for(let value of delegatingIterator) {
上面代码中delegatingIterator是代理者delegatedIterator是被代理者。由于`yield* delegatedIterator`语句得到的值,是一个遍历器,所以要用星号表示。
下面是一个稍微复杂的例子使用yield*语句遍历二叉树。
下面是一个稍微复杂的例子使用yield*语句遍历完全二叉树。
```javascript