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

ruby-changes:52579

From: shyouhei <ko1@a...>
Date: Thu, 20 Sep 2018 14:31:56 +0900 (JST)
Subject: [ruby-changes:52579] shyouhei:r64791 (trunk): fix typo [ci skip]

shyouhei	2018-09-20 14:31:51 +0900 (Thu, 20 Sep 2018)

  New Revision: 64791

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64791

  Log:
    fix typo [ci skip]
    
    This error does not happen right now so this typo is
    not serious, unless you locally edit insns.def.

  Modified files:
    trunk/tool/ruby_vm/helpers/scanner.rb
Index: tool/ruby_vm/helpers/scanner.rb
===================================================================
--- tool/ruby_vm/helpers/scanner.rb	(revision 64790)
+++ tool/ruby_vm/helpers/scanner.rb	(revision 64791)
@@ -43,7 +43,7 @@ class RubyVM::Scanner https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/helpers/scanner.rb#L43
 
   def scan! re
     scan re or raise sprintf "parse error at %s:%d near:\n %s...", \
-        @__FILE__, @__LINE__, @str[pos, 32]
+        @__FILE__, @__LINE__, @str[@pos, 32]
   end
 
   def [] key

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

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