Skip to content

Commit 80627b0

Browse files
authored
Merge pull request #647 from caspringer/patch-5
Fix incorrect grammer
2 parents 983042f + a22ab40 commit 80627b0

File tree

1 file changed

+1
-1
lines changed
  • 1-js/06-advanced-functions/02-rest-parameters-spread-operator

1 file changed

+1
-1
lines changed

1-js/06-advanced-functions/02-rest-parameters-spread-operator/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ showName("Julius", "Caesar", "Consul", "Imperator");
6262
```
6363

6464
````warn header="The rest parameters must be at the end"
65-
The rest parameters gather all remaining arguments, so the following has no sense:
65+
The rest parameters gather all remaining arguments, so the following does not make sense and causes an error:
6666
6767
```js
6868
function f(arg1, ...rest, arg2) { // arg2 after ...rest ?!

0 commit comments

Comments
 (0)