Remove unneeded Array creation in Struct#_inspect

This commit is contained in:
KOBAYASHI Shuji
2019-10-29 20:55:28 +09:00
parent 552bd9daff
commit e23840a3fc
+1 -1
View File
@@ -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