diff --git a/io.c b/io.c index c546edfbbf..a1922570c5 100644 --- a/io.c +++ b/io.c @@ -3292,6 +3292,8 @@ rb_io_gets(VALUE io) * File.new("testfile").gets #=> "This is line one\n" * $_ #=> "This is line one\n" * + * File.new("testfile").gets(4)#=> "This" + * * If IO contains multibyte characters byte then gets(1) * returns character entirely: *