diff --git a/docs/rules/prefer-spread.md b/docs/rules/prefer-spread.md index 80893d74f27..0011560c3ce 100644 --- a/docs/rules/prefer-spread.md +++ b/docs/rules/prefer-spread.md @@ -1,4 +1,4 @@ -# Suggest using the spread operator instead of `.apply()`. (prefer-spread) +# Suggest using spread syntax instead of `.apply()`. (prefer-spread) Before ES2015, one must use `Function.prototype.apply()` to call variadic functions. @@ -7,7 +7,7 @@ var args = [1, 2, 3, 4]; Math.max.apply(Math, args); ``` -In ES2015, one can use the spread operator to call variadic functions. +In ES2015, one can use spread syntax to call variadic functions. ```js /*eslint-env es6*/ @@ -18,7 +18,7 @@ Math.max(...args); ## Rule Details -This rule is aimed to flag usage of `Function.prototype.apply()` in situations where the spread operator could be used instead. +This rule is aimed to flag usage of `Function.prototype.apply()` in situations where spread syntax could be used instead. ## Examples @@ -37,7 +37,7 @@ Examples of **correct** code for this rule: ```js /*eslint prefer-spread: "error"*/ -// Using the spread operator +// Using spread syntax foo(...args); obj.foo(...args);