diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-14 04:06:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-14 04:06:52 +0000 |
commit | d952e330032662b0adba77f20a13715a1bc0f16e (patch) | |
tree | bd8a6fb7fd47d3362a8afa67a51c55ee7a394cb6 /io.c | |
parent | b88dfa10b5be5147c7204dee44ed39880254fd88 (diff) | |
download | ruby-d952e330032662b0adba77f20a13715a1bc0f16e.tar.gz |
* 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/trunk@6158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1337,7 +1337,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. @@ -1485,7 +1485,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" @@ -1522,7 +1522,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}" } @@ -1564,7 +1564,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 |