diff --git a/io.c b/io.c index 23ea18f4db..c04375d814 100644 --- a/io.c +++ b/io.c @@ -2098,7 +2098,7 @@ rb_io_write_nonblock(VALUE io, VALUE str) * The length bytes string means it doesn't meet EOF. * * If length is omitted or is nil, - * it reads until EOF. + * it reads until EOF and the encoding conversion is applied. * It returns a string even if EOF is met at beginning. * * If length is zero, it returns "".