mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user