summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-08-11 11:40:37 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-08-11 16:51:07 +0900
commitacd8ee8dbc0c0c5da8aa486db7dca169d8239196 (patch)
tree61682013138b9a846ba3e2c3dbefacd9bb779f31 /tool
parentb0eb5aa34476636771a6bfa1397115011066c410 (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')
-rw-r--r--tool/ruby_vm/helpers/c_escape.rb2
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.