From a633f0f9f6ca510e3170ef21f5892e3493d67ce7 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Thu, 29 Apr 2021 09:27:12 +0900 Subject: Fix typo in `mrbgems/mruby-io/mrblib/io.rb`; ref cb55e7eca --- mrbgems/mruby-io/mrblib/io.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mrbgems/mruby-io/mrblib/io.rb b/mrbgems/mruby-io/mrblib/io.rb index 96797a47c..8f81c5f3a 100644 --- a/mrbgems/mruby-io/mrblib/io.rb +++ b/mrbgems/mruby-io/mrblib/io.rb @@ -330,8 +330,8 @@ class IO def each_byte(&block) return to_enum(:each_byte) unless block - while char = self.getbyte - block.call(char) + while byte = self.getbyte + block.call(byte) end self end @@ -340,7 +340,7 @@ class IO alias each_line each def each_char(&block) - return to_enum(:each_byte) unless block + return to_enum(:each_char) unless block while char = self.getc block.call(char) -- cgit v1.2.3