From 72333286c45ac821e227ad62d810a09a0208ecbb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 28 May 2019 11:38:13 +0900 Subject: [PATCH] Fix typos in Ripper::Lexer#inspect and Ripper::Lexer#pretty_print --- ext/ripper/lib/ripper/lexer.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index 3301a6078c..a5ba5b6890 100644 --- a/ext/ripper/lib/ripper/lexer.rb +++ b/ext/ripper/lib/ripper/lexer.rb @@ -66,13 +66,13 @@ class Ripper end def inspect - "#<#{self.class}: #{event}@#{pos[0]}:#{pos[0]}:#{state}: #{tok.inspect}>" + "#<#{self.class}: #{event}@#{pos[0]}:#{pos[1]}:#{state}: #{tok.inspect}>" end def pretty_print(q) q.group(2, "#<#{self.class}:", ">") { q.breakable - q.text("#{event}@#{pos[0]}:#{pos[0]}") + q.text("#{event}@#{pos[0]}:#{pos[1]}") q.breakable q.text("token: ") tok.pretty_print(q)