From acf5ccd1855f47e8fcd88de80fa005612adc8268 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 3 Nov 2021 19:05:39 +0900 Subject: [PATCH] [ruby/racc] Fix typo in a local variable name https://github.com/ruby/racc/commit/03d0b86b90 --- lib/racc/grammarfileparser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/racc/grammarfileparser.rb b/lib/racc/grammarfileparser.rb index 419495113b..c7d1207f0b 100644 --- a/lib/racc/grammarfileparser.rb +++ b/lib/racc/grammarfileparser.rb @@ -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)