Skip to content

Commit

Permalink
fix: ch02.05 Rest Parameters typo #10
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Feb 2, 2024
1 parent ff2c78e commit 34cdc0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch02-05-extended-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Hello,
world!
```

Rest parameters become even more valuable when you need collecting arguments starting from a different position.
Rest parameters become even more valuable when you have one or more required parameters followed by an arbitrary number of additional parameters.

In the next example, the rest parameter is used to collect arguments from the second one to the end of the array.

Expand Down

0 comments on commit 34cdc0a

Please sign in to comment.