summaryrefslogtreecommitdiff
path: root/include
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
parentc2dcaa73626ab7a44dcc357d9751d9e2285d56ba (diff)
Fix typos
Diffstat (limited to 'include')
-rw-r--r--include/ruby/internal/encoding/string.h2
-rw-r--r--include/ruby/internal/fl_type.h2
-rw-r--r--include/ruby/internal/intern/gc.h2
-rw-r--r--include/ruby/internal/intern/thread.h4
-rw-r--r--include/ruby/io.h6
-rw-r--r--include/ruby/ractor.h2
6 files changed, 9 insertions, 9 deletions
diff --git a/include/ruby/internal/encoding/string.h b/include/ruby/internal/encoding/string.h
index f8ce809199..6ed7ca1c90 100644
--- a/include/ruby/internal/encoding/string.h
+++ b/include/ruby/internal/encoding/string.h
@@ -190,7 +190,7 @@ VALUE rb_enc_str_buf_cat(VALUE str, const char *ptr, long len, rb_encoding *enc)
* In other languages, APIs like this one could be seen as the primitive
* routines where encodings' "encode" feature are implemented. However in case
* of Ruby this is not the primitive one. We directly manipulate encoded
- * strings. Encoding conversion routines transocde an encoded string directly
+ * strings. Encoding conversion routines transcode an encoded string directly
* to another one; not via a code point array.
*/
VALUE rb_enc_uint_chr(unsigned int code, rb_encoding *enc);
diff --git a/include/ruby/internal/fl_type.h b/include/ruby/internal/fl_type.h
index 47f054256b..08405d6f30 100644
--- a/include/ruby/internal/fl_type.h
+++ b/include/ruby/internal/fl_type.h
@@ -183,7 +183,7 @@ RB_GNUC_EXTENSION
* @note About the `FL_USER` terminology: the "user" here does not necessarily
* mean only you. For instance struct ::RString instances use these
* bits to cache their encodings etc. Devs discussed about this topic,
- * reached their concensus that ::RUBY_T_DATA is the only valid data
+ * reached their consensus that ::RUBY_T_DATA is the only valid data
* structure that can use these bits; other data structures including
* ::RUBY_T_OBJECT use these bits for their own purpose. See also
* https://bugs.ruby-lang.org/issues/18059
diff --git a/include/ruby/internal/intern/gc.h b/include/ruby/internal/intern/gc.h
index 1617a7cef6..d8e476b078 100644
--- a/include/ruby/internal/intern/gc.h
+++ b/include/ruby/internal/intern/gc.h
@@ -249,7 +249,7 @@ void rb_gc(void);
*
* @internal
*
- * But isn't it easier for you to call super, and let `Object#intialize_copy`
+ * But isn't it easier for you to call super, and let `Object#initialize_copy`
* call this function instead?
*/
void rb_gc_copy_finalizer(VALUE dst, VALUE src);
diff --git a/include/ruby/internal/intern/thread.h b/include/ruby/internal/intern/thread.h
index 294e552fe9..716375acd7 100644
--- a/include/ruby/internal/intern/thread.h
+++ b/include/ruby/internal/intern/thread.h
@@ -46,7 +46,7 @@ void rb_thread_schedule(void);
*
* @param[in] fd A file descriptor.
* @exception rb_eIOError Closed stream.
- * @exception rb_eSystemCalleError Situations like EBADF.
+ * @exception rb_eSystemCallError Situations like EBADF.
*/
int rb_thread_wait_fd(int fd);
@@ -56,7 +56,7 @@ int rb_thread_wait_fd(int fd);
*
* @param[in] fd A file descriptor.
* @exception rb_eIOError Closed stream.
- * @exception rb_eSystemCalleError Situations like EBADF.
+ * @exception rb_eSystemCallError Situations like EBADF.
*/
int rb_thread_fd_writable(int fd);
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),
diff --git a/include/ruby/ractor.h b/include/ruby/ractor.h
index 687ddcadec..7811616f6d 100644
--- a/include/ruby/ractor.h
+++ b/include/ruby/ractor.h
@@ -145,7 +145,7 @@ bool rb_ractor_local_storage_value_lookup(rb_ractor_local_key_t key, VALUE *val)
* Associates the passed value to the passed key.
*
* @param[in] key A ractor-local storage key.
- * @param[in] val Arbitary ruby object.
+ * @param[in] val Arbitrary ruby object.
* @post `val` corresponds to `key` in the current Ractor.
*/
void rb_ractor_local_storage_value_set(rb_ractor_local_key_t key, VALUE val);