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

[ruby/racc] Fix typo in a local variable name

https://github.com/ruby/racc/commit/03d0b86b90
This commit is contained in:
Nobuyoshi Nakada 2021-11-03 19:05:39 +09:00 committed by git
parent 481aa61cb7
commit acf5ccd185

View file

@ -260,9 +260,9 @@ module Racc
_, *blocks = *@scanner.epilogue.split(/^----/)
blocks.each do |block|
header, *body = block.lines.to_a
label0, pathes = *header.sub(/\A-+/, '').split('=', 2)
label0, paths = *header.sub(/\A-+/, '').split('=', 2)
label = canonical_label(label0)
(pathes ? pathes.strip.split(' ') : []).each do |path|
(paths ? paths.strip.split(' ') : []).each do |path|
add_user_code label, SourceText.new(File.read(path), path, 1)
end
add_user_code label, SourceText.new(body.join(''), @filename, line + 1)