1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix the trailing comma comment for builtin [ci skip]

so that it's clear why not args.last but args[1]
This commit is contained in:
Takashi Kokubun 2022-09-20 09:43:49 +09:00
parent 76a0e81f40
commit b4546d26f2
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -97,7 +97,7 @@ def collect_builtin base, tree, name, bs, inlines, locals = nil
mid = nil
end
# w/ trailing comma: [[:method_add_arg, ...]]
# w/o trailing comma: [:args_add_block, [[:method_add_arg, ...]]]
# w/o trailing comma: [:args_add_block, [[:method_add_arg, ...]], false]
if args && args.first == :args_add_block
args = args[1]
end