Skip to content

Commit eaae443

Browse files
authored
Merge pull request ruanyf#608 from caikan/patch-1
fix typo
2 parents eca39c5 + de0e54c commit eaae443

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/proposals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const PS = eval("'\u2029'");
195195
196196
### 语法
197197
198-
多参数的函数有时需要绑定其中的一个或多个函数,然后返回一个新函数。
198+
多参数的函数有时需要绑定其中的一个或多个参数,然后返回一个新函数。
199199
200200
```javascript
201201
function add(x, y) { return x + y; }
@@ -214,7 +214,7 @@ const add7 = x => add(x, 7);
214214
215215
上面两种写法都有些冗余。其中,`bind`方法的局限更加明显,它必须提供`this`,并且只能从前到后一个个绑定参数,无法只绑定非头部的参数。
216216
217-
现在有一个[提案](https://github.com/tc39/proposal-partial-application),使用绑定参数然后返回一个新函数更加容器。这叫做函数的部分执行(partial application)。
217+
现在有一个[提案](https://github.com/tc39/proposal-partial-application),使得绑定参数并返回一个新函数更加容易。这叫做函数的部分执行(partial application)。
218218
219219
```javascript
220220
const add = (x, y) => x + y;

0 commit comments

Comments
 (0)