hash.rb: defer local variable initialization

This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-02 22:45:30 +09:00
parent 1b299addaf
commit f5a7b6aad2
+1 -1
View File
@@ -181,9 +181,9 @@ class Hash
#
# ISO 15.2.13.4.22
def merge(*others, &block)
i=0; len=others.size
h = self.dup
return h.__merge(*others) unless block
i=0; len=others.size
while i<len
other = others[i]
i += 1