ruby-changes:69577
From: Nobuyoshi <ko1@a...>
Date: Thu, 4 Nov 2021 08:58:55 +0900 (JST)
Subject: [ruby-changes:69577] acf5ccd185 (master): [ruby/racc] Fix typo in a local variable name
https://git.ruby-lang.org/ruby.git/commit/?id=acf5ccd185 From acf5ccd1855f47e8fcd88de80fa005612adc8268 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 3 Nov 2021 19:05:39 +0900 Subject: [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 419495113b8..c7d1207f0b5 100644 --- a/lib/racc/grammarfileparser.rb +++ b/lib/racc/grammarfileparser.rb @@ -260,9 +260,9 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/grammarfileparser.rb#L260 _, *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) -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/