summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-14 04:06:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-14 04:06:52 +0000
commitda011c8311088ee53a791e4d31bf6b6c4fa96db5 (patch)
tree08e2dc9b61d6be2a9bc95dd9d800dceb064d1bdd /io.c
parentb75df4ec9f6cc7295db673769d4a59f0fbd48a61 (diff)
* array.c, enum.c, eval.c, file.c, io.c, numeric.c, object.c, prec.c,
process.c, re.c, string.c: typos in RDoc comments. [ruby-core:02783] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/io.c b/io.c
index dfaaf55d32..11d5b4c79b 100644
--- a/io.c
+++ b/io.c
@@ -1317,7 +1317,7 @@ rb_io_gets(io)
* <i>sep_string</i>. A separator of <code>nil</code> reads the entire
* contents, and a zero-length separator reads the input a paragraph at
* a time (two successive newlines in the input separate paragraphs).
- * The stream must be opened for reading or an <code>IOerror</code>
+ * The stream must be opened for reading or an <code>IOError</code>
* will be raised. The line read in will be returned and also assigned
* to <code>$_</code>. Returns <code>nil</code> if called at end of
* file.
@@ -1465,7 +1465,7 @@ rb_io_readline(argc, argv, io)
* <i>sep_string</i>. If <i>set_string</i> is <code>nil</code>, the
* rest of the stream is returned as a single record.
* The stream must be opened for reading or an
- * <code>IOerror</code> will be raised.
+ * <code>IOError</code> will be raised.
*
* f = File.new("testfile")
* f.readlines[0] #=> "This is line one\n"
@@ -1502,7 +1502,7 @@ rb_io_readlines(argc, argv, io)
*
* Executes the block for every line in <em>ios</em>, where lines are
* separated by <i>sep_string</i>. <em>ios</em> must be opened for
- * reading or an <code>IOerror</code> will be raised.
+ * reading or an <code>IOError</code> will be raised.
*
* f = File.new("testfile")
* f.each {|line| puts "#{f.lineno}: #{line}" }
@@ -1544,7 +1544,7 @@ rb_io_each_line(argc, argv, io)
*
* Calls the given block once for each byte (0..255) in <em>ios</em>,
* passing the byte as an argument. The stream must be opened for
- * reading or an <code>IOerror</code> will be raised.
+ * reading or an <code>IOError</code> will be raised.
*
* f = File.new("testfile")
* checksum = 0