Commit a633f0f9 authored by KOBAYASHI Shuji's avatar KOBAYASHI Shuji

Fix typo in `mrbgems/mruby-io/mrblib/io.rb`; ref cb55e7ec

parent 2ad5d4f5
...@@ -330,8 +330,8 @@ class IO ...@@ -330,8 +330,8 @@ class IO
def each_byte(&block) def each_byte(&block)
return to_enum(:each_byte) unless block return to_enum(:each_byte) unless block
while char = self.getbyte while byte = self.getbyte
block.call(char) block.call(byte)
end end
self self
end end
...@@ -340,7 +340,7 @@ class IO ...@@ -340,7 +340,7 @@ class IO
alias each_line each alias each_line each
def each_char(&block) def each_char(&block)
return to_enum(:each_byte) unless block return to_enum(:each_char) unless block
while char = self.getc while char = self.getc
block.call(char) block.call(char)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment