summaryrefslogtreecommitdiff
path: root/ext/ripper/lib
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-08-07 03:13:17 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-08-07 03:13:17 +0900
commit8877dbe400d84c1f595cb4aa8a06fc71640a43c0 (patch)
treee557590e43b72d80097ff5967a9f3c2f77543fae /ext/ripper/lib
parentef8c5161b4422783c8f736a099d97a9c868fe287 (diff)
ext/ripper/lib/ripper/lexer.rb: Consistently use `Array#push`
instead of <<. All the other callsites use `push`.
Diffstat (limited to 'ext/ripper/lib')
-rw-r--r--ext/ripper/lib/ripper/lexer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ripper/lib/ripper/lexer.rb b/ext/ripper/lib/ripper/lexer.rb
index 8aad81b74bc..73933ca5b67 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