mruby-enum-chain: add parentheses to to_enum call

added parentheses to to_enum call where the return value is used,
explicitly specifying :each for readability.

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-12-04 19:17:23 +09:00
parent fce4eba9b2
commit 531d5a76e5
+1 -1
View File
@@ -66,7 +66,7 @@ class Enumerator
# # prints: 1, 2, 3, 4, 5
#
def each(&block)
return to_enum unless block
return to_enum(:each) unless block
i = 0
while i < @enums.size