ruby-changes:40405
From: nobu <ko1@a...>
Date: Sun, 8 Nov 2015 11:09:07 +0900 (JST)
Subject: [ruby-changes:40405] nobu:r52486 (trunk): io.c: [DOC] IO#gets [skip ci]
nobu 2015-11-08 11:08:57 +0900 (Sun, 08 Nov 2015) New Revision: 52486 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52486 Log: io.c: [DOC] IO#gets [skip ci] * io.c (rb_io_gets_m): [DOC] fix class name and reword as "multibyte". [Fix GH-1085] Modified files: trunk/io.c Index: io.c =================================================================== --- io.c (revision 52485) +++ io.c (revision 52486) @@ -3292,8 +3292,8 @@ rb_io_gets(VALUE io) https://github.com/ruby/ruby/blob/trunk/io.c#L3292 * File.new("testfile").gets #=> "This is line one\n" * $_ #=> "This is line one\n" * - * If StringIO contains characters more than 1 byte - * then <code>gets(1)</code> returns character entirely: + * If IO contains multibyte characters byte then <code>gets(1)</code> + * returns character entirely: * * # russian characters take 2 bytes * File.write("testfile", "\u{442 435 441 442}") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/