Skip to content

Commit 3226888

Browse files
committed
docs(acknowledgement): edit acknowledgement
1 parent b48a35b commit 3226888

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/acknowledgment.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# 鸣谢
2+
3+
## Generator
4+
5+
网友 vision57 提出,`next()``throw()``return()`这三个方法本质上是同一件事,可以放在一起理解。它们的作用都是让 Generator 函数恢复执行,并且使用不同的语句替换`yield`表达式。

docs/generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ g.next() // { value: 7, done: true }
708708

709709
## next()、throw()、return() 的共同点
710710

711-
网友 vision57 提出,`next()``throw()``return()`这三个方法本质上是同一件事,可以放在一起理解。它们的作用都是让 Generator 函数恢复执行,并且使用不同的语句替换`yield`表达式。
711+
`next()``throw()``return()`这三个方法本质上是同一件事,可以放在一起理解。它们的作用都是让 Generator 函数恢复执行,并且使用不同的语句替换`yield`表达式。
712712

713713
`next()`是将`yield`表达式替换成一个值。
714714

0 commit comments

Comments
 (0)