reduce object allocation in __update

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-21 21:53:50 +09:00
parent 07bd65ae65
commit 041b5a9f67
+1 -1
View File
@@ -185,7 +185,7 @@ class Hash
end
def __update(h)
h.each{|k,v| self[k] = v}
h.each_key{|k| self[k] = h[v]}
self
end
end