mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix IO#eof? method (consider the read buffer)
This commit is contained in:
+2
-1
@@ -55,7 +55,8 @@ class IO
|
||||
end
|
||||
|
||||
def eof?
|
||||
# XXX: @buf のことを考えなくてよい??
|
||||
return true if @buf && @buf.size > 0
|
||||
|
||||
ret = false
|
||||
char = ''
|
||||
|
||||
|
||||
Reference in New Issue
Block a user