From 75d7b8ed7cfbba0fb42052934124399602eaa542 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 4 Dec 2025 19:38:13 +0900 Subject: [PATCH] mruby-string-ext: add parentheses to to_enum call added parentheses to to_enum call where the return value is used. Co-authored-by: Claude --- mrbgems/mruby-string-ext/mrblib/string.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-string-ext/mrblib/string.rb b/mrbgems/mruby-string-ext/mrblib/string.rb index ff812f3dd..6c3c791f4 100644 --- a/mrbgems/mruby-string-ext/mrblib/string.rb +++ b/mrbgems/mruby-string-ext/mrblib/string.rb @@ -4,7 +4,7 @@ class String # Call the given block for each character of # `self`. def each_char(&block) - return to_enum :each_char unless block + return to_enum(:each_char) unless block pos = 0 while pos < self.size block.call(self[pos])