@@ -1317,7 +1317,7 @@ rb_io_gets(io)
1317
1317
* <i>sep_string</i>. A separator of <code>nil</code> reads the entire
1318
1318
* contents, and a zero-length separator reads the input a paragraph at
1319
1319
* a time (two successive newlines in the input separate paragraphs).
1320
- * The stream must be opened for reading or an <code>IOerror </code>
1320
+ * The stream must be opened for reading or an <code>IOError </code>
1321
1321
* will be raised. The line read in will be returned and also assigned
1322
1322
* to <code>$_</code>. Returns <code>nil</code> if called at end of
1323
1323
* file.
@@ -1465,7 +1465,7 @@ rb_io_readline(argc, argv, io)
1465
1465
* <i>sep_string</i>. If <i>set_string</i> is <code>nil</code>, the
1466
1466
* rest of the stream is returned as a single record.
1467
1467
* The stream must be opened for reading or an
1468
- * <code>IOerror </code> will be raised.
1468
+ * <code>IOError </code> will be raised.
1469
1469
*
1470
1470
* f = File.new("testfile")
1471
1471
* f.readlines[0] #=> "This is line one\n"
@@ -1502,7 +1502,7 @@ rb_io_readlines(argc, argv, io)
1502
1502
*
1503
1503
* Executes the block for every line in <em>ios</em>, where lines are
1504
1504
* separated by <i>sep_string</i>. <em>ios</em> must be opened for
1505
- * reading or an <code>IOerror </code> will be raised.
1505
+ * reading or an <code>IOError </code> will be raised.
1506
1506
*
1507
1507
* f = File.new("testfile")
1508
1508
* f.each {|line| puts "#{f.lineno}: #{line}" }
@@ -1544,7 +1544,7 @@ rb_io_each_line(argc, argv, io)
1544
1544
*
1545
1545
* Calls the given block once for each byte (0..255) in <em>ios</em>,
1546
1546
* passing the byte as an argument. The stream must be opened for
1547
- * reading or an <code>IOerror </code> will be raised.
1547
+ * reading or an <code>IOError </code> will be raised.
1548
1548
*
1549
1549
* f = File.new("testfile")
1550
1550
* checksum = 0
0 commit comments