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

Strip the last line which become trailing spaces

This commit is contained in:
Nobuyoshi Nakada 2019-11-12 00:09:34 +09:00
parent dd0217a869
commit b0fb9bda9a
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -27,7 +27,7 @@ def collect_builtin base, iseq_ary, bs, inlines
if func_name == 'inline!'
raise "argc (#{argc}) of inline! should be 1" unless argc == 1
raise "1st argument should be string literal" unless prev_insn[0] == :putstring
text = prev_insn[1]
text = prev_insn[1].rstrip
func_name = "rb_compiled_inline#{inlines.size}"
inlines << [func_name, [lineno, text, params]]