Skip to content

Commit e6a36b4

Browse files
committed
docs(style): fix arrow function
1 parent 0a59ce8 commit e6a36b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ const nodes = Array.from(foo);
250250
})();
251251
```
252252

253-
那些需要使用内联函数(或匿名函数)的场合,尽量用箭头函数代替。因为这样更简洁,而且绑定了 this。
253+
那些使用匿名函数当作参数的场合,尽量用箭头函数代替。因为这样更简洁,而且绑定了 this。
254254

255255
```javascript
256256
// bad

0 commit comments

Comments
 (0)