aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tool/ruby_vm/views/_insn_type_chars.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/ruby_vm/views/_insn_type_chars.erb b/tool/ruby_vm/views/_insn_type_chars.erb
index fb0e091241..4e1f63e660 100644
--- a/tool/ruby_vm/views/_insn_type_chars.erb
+++ b/tool/ruby_vm/views/_insn_type_chars.erb
@@ -6,7 +6,8 @@
%# conditions mentioned in the file COPYING are met. Consult the file for
%# details.
%
-% map = RubyVM::Typemap.each_pair.map {|k, (c, t)| sprintf "%s = '%s'", t, c }
enum ruby_insn_type_chars {
- <%= map.join(",\n ") %>
+% RubyVM::Typemap.each_value do |(c, t)|
+ <%= t %> = '<%= c %>',
+% end
};