Skip to content

Commit

Permalink
Merge pull request #982 from drdilyor/master
Browse files Browse the repository at this point in the history
Fix argument max limit in answers 8 -> 255
  • Loading branch information
munificent authored Jul 30, 2021
2 parents 6eebbec + 0d74f7c commit 1e316d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions note/answers/chapter12_classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
parameters = new ArrayList<>();
if (!check(RIGHT_PAREN)) {
do {
if (parameters.size() >= 8) {
error(peek(), "Can't have more than 8 parameters.");
if (parameters.size() >= 255) {
error(peek(), "Can't have more than 255 parameters.");
}

parameters.add(consume(IDENTIFIER, "Expect parameter name."));
Expand Down

0 comments on commit 1e316d1

Please sign in to comment.