Merge pull request #5432 from shuujii/fix-typo-in-mrbgems-mruby-io-mrblib-io.rb

Fix typo in `mrbgems/mruby-io/mrblib/io.rb`; ref cb55e7eca
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-04-29 11:17:41 +09:00
committed by GitHub
+3 -3
View File
@@ -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)