From e1ae889c9c41c282ae331dd0dd0d2e3e0b153b78 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 3 Nov 2021 19:06:12 +0900 Subject: [PATCH] [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 3444dfcce3..01c4c3df69 100644 --- a/lib/racc/grammar.rb +++ b/lib/racc/grammar.rb @@ -335,14 +335,14 @@ module Racc 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|