[前][次][番号順一覧][スレッド一覧]

ruby-changes:69578

From: Nobuyoshi <ko1@a...>
Date: Thu, 4 Nov 2021 08:58:56 +0900 (JST)
Subject: [ruby-changes:69578] e1ae889c9c (master): [ruby/racc] Fix a private method name

https://git.ruby-lang.org/ruby.git/commit/?id=e1ae889c9c

From e1ae889c9c41c282ae331dd0dd0d2e3e0b153b78 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 3 Nov 2021 19:06:12 +0900
Subject: [ruby/racc] Fix a private method name

https://github.com/ruby/racc/commit/1f52571225
---
 lib/racc/grammar.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/racc/grammar.rb b/lib/racc/grammar.rb
index 3444dfcce3e..01c4c3df69b 100644
--- a/lib/racc/grammar.rb
+++ b/lib/racc/grammar.rb
@@ -335,14 +335,14 @@ module Racc https://github.com/ruby/ruby/blob/trunk/lib/racc/grammar.rb#L335
         if action
           idbase = "#{type}@#{id}-#{@seqs[type] += 1}"
           target = _wrap(idbase, "#{idbase}-core", action)
-          _regist("#{idbase}-core", &block)
+          _register("#{idbase}-core", &block)
         else
-          target = _regist("#{type}@#{id}", &block)
+          target = _register("#{type}@#{id}", &block)
         end
         @grammar.intern(target)
       end
 
-      def _regist(target_name)
+      def _register(target_name)
         target = target_name.intern
         unless _added?(@grammar.intern(target))
           yield(target).each_rule do |rule|
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]