diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-07 03:13:17 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-08-07 03:13:17 +0900 |
commit | 8877dbe400d84c1f595cb4aa8a06fc71640a43c0 (patch) | |
tree | e557590e43b72d80097ff5967a9f3c2f77543fae /ext/ripper | |
parent | ef8c5161b4422783c8f736a099d97a9c868fe287 (diff) |
ext/ripper/lib/ripper/lexer.rb: Consistently use `Array#push`
instead of <<. All the other callsites use `push`.
Diffstat (limited to 'ext/ripper')
-rw-r--r-- | ext/ripper/lib/ripper/lexer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb index 8aad81b74b..73933ca5b6 100644 --- a/ext/ripper/lib/ripper/lexer.rb +++ b/ext/ripper/lib/ripper/lexer.rb @@ -161,7 +161,7 @@ class Ripper def on_heredoc_beg(tok) @stack.push @buf buf = [] - @buf << buf + @buf.push buf @buf = buf @buf.push Elem.new([lineno(), column()], __callee__, tok, state()) end |