1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ext/ripper/lib/ripper/lexer.rb: Consistently use Array#push

instead of <<.  All the other callsites use `push`.
This commit is contained in:
Yusuke Endoh 2019-08-07 03:13:17 +09:00
parent ef8c5161b4
commit 8877dbe400

View file

@ -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