Fix incorrect grammer

This commit is contained in:
caspringer 2018-12-05 09:16:07 -05:00 committed by GitHub
parent ad8ab1d55f
commit a22ab40e03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ showName("Julius", "Caesar", "Consul", "Imperator");
``` ```
````warn header="The rest parameters must be at the end" ````warn header="The rest parameters must be at the end"
The rest parameters gather all remaining arguments, so the following has no sense: The rest parameters gather all remaining arguments, so the following does not make sense and causes an error:
```js ```js
function f(arg1, ...rest, arg2) { // arg2 after ...rest ?! function f(arg1, ...rest, arg2) { // arg2 after ...rest ?!