diff options
author | 卜部昌平 <[email protected]> | 2020-08-11 11:40:37 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-08-11 16:51:07 +0900 |
commit | acd8ee8dbc0c0c5da8aa486db7dca169d8239196 (patch) | |
tree | 61682013138b9a846ba3e2c3dbefacd9bb779f31 /tool/ruby_vm | |
parent | b0eb5aa34476636771a6bfa1397115011066c410 (diff) |
tool/prelude.c.tmpl: use RubyVM::CEscape
Do not repeat yourself.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3405
Diffstat (limited to 'tool/ruby_vm')
-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. |