diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-11 11:40:37 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-11 16:51:07 +0900 |
commit | acd8ee8dbc0c0c5da8aa486db7dca169d8239196 (patch) | |
tree | 61682013138b9a846ba3e2c3dbefacd9bb779f31 /tool | |
parent | b0eb5aa34476636771a6bfa1397115011066c410 (diff) | |
download | ruby-acd8ee8dbc0c0c5da8aa486db7dca169d8239196.tar.gz |
tool/prelude.c.tmpl: use RubyVM::CEscape
Do not repeat yourself.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/ruby_vm/helpers/c_escape.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/ruby_vm/helpers/c_escape.rb b/tool/ruby_vm/helpers/c_escape.rb index a3368b8cc9..e9a8da6e50 100644 --- a/tool/ruby_vm/helpers/c_escape.rb +++ b/tool/ruby_vm/helpers/c_escape.rb @@ -17,7 +17,7 @@ module RubyVM::CEscape # generate comment, with escaps. def commentify str - return "/* #{str.strip.b.gsub '*/', '*\\/'} */" + return "/* #{str.b.gsub '*/', '*\\/'} */" end # Mimic gensym of CL. |