diff options
-rwxr-xr-x | tools/genruby.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb index f583677..77a4fb1 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -174,7 +174,7 @@ def gen_enums path, indent i=v.to_i+1 end end - args = syms.inject(''){|r,s| r+=":#{s.strip.downcase}, #{h[s]}, " } + args = syms.inject(''){|r,s| r+=":#{s.strip.downcase}, #{h[s]}, " }.sub(/, $/,'') end r << indent+"# #{typedef} {...} #{typename};" r << wrap_text( indent+"enum #{tsym}, [ #{args} ]", indent+' '*4 ) |