summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-03 17:46:28 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-03 17:46:28 +0000
commitb9e0294edaceecb177401902f3809a45af666d7e (patch)
tree6c83191a7891bfb4449e4c61bcf944ae968319b7 /io.c
parentc30e32d075478c62580c7d3f5699c2c477503b41 (diff)
fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25635 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 f150fb7617..39ef165f07 100644
--- a/io.c
+++ b/io.c
@@ -6298,7 +6298,7 @@ rb_io_stdio_file(rb_io_t *fptr)
* === Parameters
* fd:: numeric file descriptor
* mode:: file mode. a string or an integer
- * opt:: hash for specifiying mode by name.
+ * opt:: hash for specifying mode by name.
*
* ==== Mode
* When <code>mode</code> is an integer it must be combination of
@@ -6359,7 +6359,7 @@ rb_io_stdio_file(rb_io_t *fptr)
* io = IO.new(fd, mode: 'w', cr_newline: true, external_encoding: Encoding::UTF_16LE)
* io.puts "Hello, World!"
*
- * both of aboves print "Hello, World!" in UTF-16LE to standard error output with
+ * both of above print "Hello, World!" in UTF-16LE to standard error output with
* converting EOL generated by <code>puts</code> to CR.
*/
@@ -9114,7 +9114,7 @@ argf_readbyte(VALUE argf)
* Returns an enumerator which iterates over each line (separated by _sep_,
* which defaults to your platform's newline character) of each file in
* +ARGV+. If a block is supplied, each line in turn will be yielded to the
- * block. The optional _limit_ argument is a +Fixnum+ specifying the maximumn
+ * block. The optional _limit_ argument is a +Fixnum+ specifying the maximum
* length of each line; longer lines will be split according to this limit.
*
* This method allows you to treat the files supplied on the command line as
@@ -9415,7 +9415,7 @@ opt_i_get(ID id, VALUE *var)
*
* Sets the filename extension for inplace editing mode to the given String.
* Each file being edited has this value appended to its filename. The
- * modifed file is saved under this new name.
+ * modified file is saved under this new name.
*
* For example:
*
@@ -9426,7 +9426,7 @@ opt_i_get(ID id, VALUE *var)
* print line.sub("foo","bar")
* end
*
- * Each line of _file.txt_ has the first occurence of "foo" replaced with
+ * Each line of _file.txt_ has the first occurrence of "foo" replaced with
* "bar", then the new line is written out to _file.txt.bak_.
*/
static VALUE
@@ -9912,7 +9912,7 @@ Init_IO(void)
/* truncate size to 0 */
rb_file_const("TRUNC", INT2FIX(O_TRUNC));
#ifdef O_NOCTTY
- /* not to make opened IO the controling terminal device */
+ /* not to make opened IO the controlling terminal device */
rb_file_const("NOCTTY", INT2FIX(O_NOCTTY));
#endif
#ifndef O_BINARY