diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-04-29 11:17:41 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-29 11:17:41 +0900 |
| commit | 519dc3d19c355e53f3fa539da1696b6f4c40d87d (patch) | |
| tree | fd8802f65f255a7cd8625608c8e7d5103cc31cb2 | |
| parent | 2ad5d4f53df27e40dac1d83a20317360088f6493 (diff) | |
| parent | a633f0f9f6ca510e3170ef21f5892e3493d67ce7 (diff) | |
| download | mruby-519dc3d19c355e53f3fa539da1696b6f4c40d87d.tar.gz mruby-519dc3d19c355e53f3fa539da1696b6f4c40d87d.zip | |
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
| -rw-r--r-- | mrbgems/mruby-io/mrblib/io.rb | 6 |
1 files 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) |
