Skip to content

Commit 03d0b86

Browse files
committed
Fix typo in a local variable name
1 parent 8eae41e commit 03d0b86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/racc/grammarfileparser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,9 @@ def parse_user_code
260260
_, *blocks = *@scanner.epilogue.split(/^----/)
261261
blocks.each do |block|
262262
header, *body = block.lines.to_a
263-
label0, pathes = *header.sub(/\A-+/, '').split('=', 2)
263+
label0, paths = *header.sub(/\A-+/, '').split('=', 2)
264264
label = canonical_label(label0)
265-
(pathes ? pathes.strip.split(' ') : []).each do |path|
265+
(paths ? paths.strip.split(' ') : []).each do |path|
266266
add_user_code label, SourceText.new(File.read(path), path, 1)
267267
end
268268
add_user_code label, SourceText.new(body.join(''), @filename, line + 1)

0 commit comments

Comments
 (0)