Skip to content

Commit 262dd03

Browse files
authored
Update generator.md
1 parent c73b7b6 commit 262dd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/generator.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ genObj.next('b')
309309
310310
## for...of循环
311311
312-
`for...of`循环可以自动遍历Generator函数,且此时不再需要调用`next`方法。
312+
`for...of`循环可以自动遍历调用Generator函数时生成的Iterator对象,且此时不再需要调用`next`方法。
313313
314314
```javascript
315315
function *foo() {

0 commit comments

Comments
 (0)