summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-16 09:29:40 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-16 09:29:40 +0000
commitcda9c17cdc9d91dba86a51c2572fe8e222ce63c5 (patch)
treed81b5ec888d274446b97d90458104049966a77bf /io.c
parent3338d8f45e361ca85a427b5d78cc8b3f7286c2e1 (diff)
downloadruby-cda9c17cdc9d91dba86a51c2572fe8e222ce63c5.tar.gz
ruby-cda9c17cdc9d91dba86a51c2572fe8e222ce63c5.tar.xz
ruby-cda9c17cdc9d91dba86a51c2572fe8e222ce63c5.zip
* io.c (rb_io_gets_m): rdoc updated. limit counts in bytes.
[ruby-core:18617] * io.c (rb_io_readlines, rb_f_gets): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/io.c b/io.c
index ba1d08cd5..56745aa68 100644
--- a/io.c
+++ b/io.c
@@ -2257,7 +2257,7 @@ rb_io_gets(VALUE io)
* 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 @@ rb_io_readline(int argc, VALUE *argv, VALUE io)
* <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 @@ static VALUE argf_gets(int, VALUE *, VALUE);
* 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