hash.rb: add parentheses to block.call

added parentheses to block.call where the return value is used.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-04 20:47:14 +09:00
parent 0d7903694c
commit 1b85ad2bfe
+1 -1
View File
@@ -59,7 +59,7 @@ class Hash
len = self.size
i = 0
while i < len
block.call [keys[i], vals[i]]
block.call([keys[i], vals[i]])
i += 1
end
self