ruby-changes:7859
From: matz <ko1@a...>
Date: Tue, 16 Sep 2008 18:29:54 +0900 (JST)
Subject: [ruby-changes:7859] Ruby:r19380 (trunk): * io.c (rb_io_gets_m): rdoc updated. limit counts in bytes.
matz 2008-09-16 18:29:40 +0900 (Tue, 16 Sep 2008) New Revision: 19380 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19380 Log: * io.c (rb_io_gets_m): rdoc updated. limit counts in bytes. [ruby-core:18617] * io.c (rb_io_readlines, rb_f_gets): ditto. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19379) +++ ChangeLog (revision 19380) @@ -1,3 +1,10 @@ +Tue Sep 16 18:28:52 2008 Yukihiro Matsumoto <matz@r...> + + * io.c (rb_io_gets_m): rdoc updated. limit counts in bytes. + [ruby-core:18617] + + * io.c (rb_io_readlines, rb_f_gets): ditto. + Tue Sep 16 11:55:16 2008 Yukihiro Matsumoto <matz@r...> * string.c (rb_str_each_codepoint): add new methods, #codepoints Index: io.c =================================================================== --- io.c (revision 19379) +++ io.c (revision 19380) @@ -2257,7 +2257,7 @@ * to <code>$_</code>. Returns <code>nil</code> if called at end of * file. If the first argument is an integer, or optional second * argument is given, the returning string would not be longer than the - * given value. + * given value in bytes. * * File.new("testfile").gets #=> "This is line one\n" * $_ #=> "This is line one\n" @@ -2363,8 +2363,8 @@ * <i>sep</i> is <code>nil</code>, the rest of the stream is returned * as a single record. If the first argument is an integer, or * optional second argument is given, the returning string would not be - * longer than the given value. The stream must be opened for reading - * or an <code>IOError</code> will be raised. + * longer than the given value in bytes. The stream must be opened for + * reading or an <code>IOError</code> will be raised. * * f = File.new("testfile") * f.readlines[0] #=> "This is line one\n" @@ -5994,9 +5994,9 @@ * reads the input one paragraph at a time, where paragraphs are * divided by two consecutive newlines. If the first argument is an * integer, or optional second argument is given, the returning string - * would not be longer than the given value. If multiple filenames are - * present in +ARGV+, +gets(nil)+ will read the contents one file at a - * time. + * would not be longer than the given value in bytes. If multiple + * filenames are present in +ARGV+, +gets(nil)+ will read the contents + * one file at a time. * * ARGV << "testfile" * print while gets -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/