mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Remove unneeded Array creation in Struct#_inspect
This commit is contained in:
@@ -57,7 +57,7 @@ if Object.const_defined?(:Struct)
|
||||
end
|
||||
buf = []
|
||||
self.each_pair do |k,v|
|
||||
buf.push [k.to_s + "=" + v._inspect(recur_list)]
|
||||
buf.push k.to_s + "=" + v._inspect(recur_list)
|
||||
end
|
||||
str + buf.join(", ") + ">"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user