Update generator.md

语句不完整
This commit is contained in:
byog
2019-02-14 16:09:59 +08:00
committed by GitHub
parent b26bc37017
commit 2cfe112c69
+1 -1
View File
@@ -310,7 +310,7 @@ wrapped().next('hello!')
## for...of 循环
`for...of`循环可以自动遍历 Generator 函数时生成的`Iterator`对象,且此时不再需要调用`next`方法。
`for...of`循环可以自动遍历 Generator 函数运行时生成的`Iterator`对象,且此时不再需要调用`next`方法。
```javascript
function* foo() {