Skip to content

Commit

Permalink
'numbererd' -> 'numbered' (#778)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Thompson <[email protected]>
  • Loading branch information
Chris Thompson and Chris Thompson authored Dec 16, 2020
1 parent b87613d commit 78bc319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parser/builders/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1660,7 +1660,7 @@ def check_assignment_to_numparam(name, loc)

def check_reserved_for_numparam(name, loc)
# MRI < 3.0 accepts assignemnt to variables like _1
# if it's not a numbererd parameter. MRI 3.0 and newer throws an error.
# if it's not a numbered parameter. MRI 3.0 and newer throws an error.
return if @parser.version < 30

if name =~ /\A_([1-9])\z/
Expand Down

0 comments on commit 78bc319

Please sign in to comment.