Skip to content

Commit

Permalink
io.c: [DOC] IO#gets [skip ci]
Browse files Browse the repository at this point in the history
* io.c (rb_io_gets_m): [DOC] fix class name and reword as
  "multibyte".  [Fix rubyGH-1085]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Nov 8, 2015
1 parent 965e9df commit 86eda62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io.c
Original file line number Diff line number Diff line change
Expand Up @@ -3292,8 +3292,8 @@ rb_io_gets(VALUE io)
* 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}")
Expand Down

0 comments on commit 86eda62

Please sign in to comment.