summaryrefslogtreecommitdiff
path: root/include/ruby/io.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-02 18:29:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-11-02 19:17:37 +0900
commita2024081805af4e729bea029abb7bbe7c383dce2 (patch)
treea7a46007a44e6ca541980aaa9bd65950d9f277c6 /include/ruby/io.h
parentc2dcaa73626ab7a44dcc357d9751d9e2285d56ba (diff)
downloadruby-a2024081805af4e729bea029abb7bbe7c383dce2.tar.gz
Fix typos
Diffstat (limited to 'include/ruby/io.h')
-rw-r--r--include/ruby/io.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/ruby/io.h b/include/ruby/io.h
index c117087d6a..aac7846537 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -470,7 +470,7 @@ int rb_io_modestr_fmode(const char *modestr);
/**
* Identical to rb_io_modestr_fmode(), except it returns a mixture of `O_`
- * flags. This for instnce returns `O_WRONLY | O_TRUNC | O_CREAT | O_EXCL` for
+ * flags. This for instance returns `O_WRONLY | O_TRUNC | O_CREAT | O_EXCL` for
* `"wx"`.
*
* @param[in] modestr File mode, in C's string.
@@ -735,8 +735,8 @@ int rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **
* class File
* def initialize: (
* (String | int) path,
- * ?(Strig | int) fmode,
- * ?(Strig | int) perm,
+ * ?(String | int) fmode,
+ * ?(String | int) perm,
* ?mode: (String | int),
* ?flags: int,
* ?external_encoding: (Encoding | String),