summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-20 05:31:51 (GMT)
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-20 05:31:51 (GMT)
commitd6d444d6b2a5f111e0ffc0fee89b09ed76420d26 (patch)
treea6e71406f6b270fd6820cd6ecfca73952a02cd1e /tool
parentce079f165176d168ced2c81c79c9d1f889ab173a (diff)
fix typo [ci skip]
This error does not happen right now so this typo is not serious, unless you locally edit insns.def. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/ruby_vm/helpers/scanner.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ruby_vm/helpers/scanner.rb b/tool/ruby_vm/helpers/scanner.rb
index 8f7531a..2ae5ad6 100644
--- a/tool/ruby_vm/helpers/scanner.rb
+++ b/tool/ruby_vm/helpers/scanner.rb
@@ -43,7 +43,7 @@ class RubyVM::Scanner
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