mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-enumerator: add parentheses to block.call
added parentheses to block.call calls where the return value is used. Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -175,7 +175,7 @@ class Enumerator
|
||||
n = offset - 1
|
||||
__enumerator_block_call do |*i|
|
||||
n += 1
|
||||
block.call i.__svalue, n
|
||||
block.call(i.__svalue, n)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -224,7 +224,7 @@ class Enumerator
|
||||
return to_enum(:with_object, object) unless block
|
||||
|
||||
__enumerator_block_call do |i|
|
||||
block.call [i,object]
|
||||
block.call([i,object])
|
||||
end
|
||||
object
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user