From 5f2001321997a866f56bb91f4b18a4cf87c29a5c Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 4 Dec 2025 19:31:40 +0900 Subject: [PATCH] mruby-io: 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 --- mrbgems/mruby-io/mrblib/io.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-io/mrblib/io.rb b/mrbgems/mruby-io/mrblib/io.rb index 8cd442ac0..d5307016b 100644 --- a/mrbgems/mruby-io/mrblib/io.rb +++ b/mrbgems/mruby-io/mrblib/io.rb @@ -210,7 +210,7 @@ class IO # # 15.2.20.5.3 def each(&block) - return to_enum unless block + return to_enum(:each) unless block while line = self.gets block.call(line)