From e6a36b43988c2b87ba472fe9da6dccbcc49ea16d Mon Sep 17 00:00:00 2001 From: ruanyf Date: Mon, 1 Jul 2019 13:53:09 +0800 Subject: [PATCH] docs(style): fix arrow function --- docs/style.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/style.md b/docs/style.md index 73ae589..0a18f9d 100644 --- a/docs/style.md +++ b/docs/style.md @@ -250,7 +250,7 @@ const nodes = Array.from(foo); })(); ``` -那些需要使用内联函数(或匿名函数)的场合,尽量用箭头函数代替。因为这样更简洁,而且绑定了 this。 +那些使用匿名函数当作参数的场合,尽量用箭头函数代替。因为这样更简洁,而且绑定了 this。 ```javascript // bad