Merge pull request #647 from caspringer/patch-5

Fix incorrect grammer
This commit is contained in:
Ilya Kantor 2018-12-06 20:12:16 +03:00 committed by GitHub
commit 80627b05f3
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"
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
function f(arg1, ...rest, arg2) { // arg2 after ...rest ?!