[前][次][番号順一覧][スレッド一覧]

ruby-changes:70569

From: Kazuhiro <ko1@a...>
Date: Sat, 25 Dec 2021 10:34:51 +0900 (JST)
Subject: [ruby-changes:70569] 04f07713d1 (master): Fix typos [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=04f07713d1

From 04f07713d19cbde1f2d23d7f3b2318a0a84bab5b Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Sat, 25 Dec 2021 10:33:49 +0900
Subject: Fix typos [ci skip]

---
 include/ruby/fiber/scheduler.h |  2 +-
 io_buffer.c                    |  2 +-
 marshal.c                      |  2 +-
 struct.c                       |  2 +-
 variable.c                     |  2 +-
 yjit_asm.c                     |  2 +-
 yjit_codegen.c                 | 12 ++++++------
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/include/ruby/fiber/scheduler.h b/include/ruby/fiber/scheduler.h
index 14e36ffb3a4..3ea52beb95d 100644
--- a/include/ruby/fiber/scheduler.h
+++ b/include/ruby/fiber/scheduler.h
@@ -52,7 +52,7 @@ rb_fiber_scheduler_io_result(ssize_t result, int error) { https://github.com/ruby/ruby/blob/trunk/include/ruby/fiber/scheduler.h#L52
 }
 
 /**
- * Apply an io result to the local thread, returning the value of the orginal
+ * Apply an io result to the local thread, returning the value of the original
  * system call that created it and updating `int errno`.
  *
  * You should not directly try to interpret the result value as it is considered
diff --git a/io_buffer.c b/io_buffer.c
index fa28c59b329..5227a2a5b8b 100644
--- a/io_buffer.c
+++ b/io_buffer.c
@@ -1843,7 +1843,7 @@ io_buffer_clear(int argc, VALUE *argv, VALUE self) https://github.com/ruby/ruby/blob/trunk/io_buffer.c#L1843
 
 static
 size_t io_buffer_default_size(size_t page_size) {
-    // Platform agnostic default size, based on emperical performance observation:
+    // Platform agnostic default size, based on empirical performance observation:
     const size_t platform_agnostic_default_size = 64*1024;
 
     // Allow user to specify custom default buffer size:
diff --git a/marshal.c b/marshal.c
index 0f746d98050..c5327fca602 100644
--- a/marshal.c
+++ b/marshal.c
@@ -1456,7 +1456,7 @@ symname_equal(VALUE sym, const char *name, size_t nlen) https://github.com/ruby/ruby/blob/trunk/marshal.c#L1456
 }
 
 #define BUILD_ASSERT_POSITIVE(n) \
-    /* make 0 negative to workaround the "zero size array" GCC extention, */ \
+    /* make 0 negative to workaround the "zero size array" GCC extension, */ \
     ((sizeof(char [2*(ssize_t)(n)-1])+1)/2) /* assuming no overflow */
 #define symname_equal_lit(sym, sym_name) \
     symname_equal(sym, sym_name, BUILD_ASSERT_POSITIVE(rb_strlen_lit(sym_name)))
diff --git a/struct.c b/struct.c
index fc9cbc78cc1..716bc7f4fd9 100644
--- a/struct.c
+++ b/struct.c
@@ -191,7 +191,7 @@ struct_member_pos(VALUE s, VALUE name) https://github.com/ruby/ruby/blob/trunk/struct.c#L191
  *  call-seq:
  *    StructClass::members -> array_of_symbols
  *
- *  Returns the member names of the Struct decendant as an array:
+ *  Returns the member names of the Struct descendant as an array:
  *
  *     Customer = Struct.new(:name, :address, :zip)
  *     Customer.members # => [:name, :address, :zip]
diff --git a/variable.c b/variable.c
index c2b8146f9a4..eaad6eb4973 100644
--- a/variable.c
+++ b/variable.c
@@ -1499,7 +1499,7 @@ rb_init_iv_list(VALUE obj) https://github.com/ruby/ruby/blob/trunk/variable.c#L1499
     init_iv_list(obj, len, newsize, index_tbl);
 }
 
-// Retreive or create the id-to-index mapping for a given object and an
+// Retrieve or create the id-to-index mapping for a given object and an
 // instance variable name.
 static struct ivar_update
 obj_ensure_iv_index_mapping(VALUE obj, ID id)
diff --git a/yjit_asm.c b/yjit_asm.c
index 64cbb163a21..9f84e3974b7 100644
--- a/yjit_asm.c
+++ b/yjit_asm.c
@@ -1344,7 +1344,7 @@ void mov(codeblock_t *cb, x86opnd_t dst, x86opnd_t src) https://github.com/ruby/ruby/blob/trunk/yjit_asm.c#L1344
                 cb_write_rm(cb, dst.num_bits == 16, dst.num_bits == 64, NO_OPND, dst, 0, 1, 0xC7);
 
             const uint32_t output_num_bits = (dst.num_bits > 32u) ? 32u : dst.num_bits;
-            // assert that we can write whole immediate without loss of infomation
+            // assert that we can write whole immediate without loss of information
             assert (sig_imm_size(src.as.imm) <= output_num_bits);
             cb_write_int(cb, src.as.imm, output_num_bits);
         }
diff --git a/yjit_codegen.c b/yjit_codegen.c
index 528d9a45d74..8a547d2ef60 100644
--- a/yjit_codegen.c
+++ b/yjit_codegen.c
@@ -1731,7 +1731,7 @@ gen_get_ivar(jitstate_t *jit, ctx_t *ctx, const int max_chain_depth, VALUE compt https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L1731
         mov(cb, out_opnd, REG1);
     }
     else {
-        // Compile time value is *not* embeded.
+        // Compile time value is *not* embedded.
 
         // Guard that value is *not* embedded
         // See ROBJECT_IVPTR() from include/ruby/internal/core/robject.h
@@ -2274,7 +2274,7 @@ gen_opt_aref(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2274
 
         call_ptr(cb, REG0, (void *)rb_hash_aref);
 
-        // Pop the key and the reciever
+        // Pop the key and the receiver
         (void)ctx_stack_pop(ctx, 2);
 
         // Push the return value onto the stack
@@ -2682,7 +2682,7 @@ gen_opt_case_dispatch(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2682
     // Normally this instruction would lookup the key in a hash and jump to an
     // offset based on that.
     // Instead we can take the fallback case and continue with the next
-    // instruciton.
+    // instruction.
     // We'd hope that our jitted code will be sufficiently fast without the
     // hash lookup, at least for small hashes, but it's worth revisiting this
     // assumption in the future.
@@ -2982,7 +2982,7 @@ jit_guard_known_klass(jitstate_t *jit, ctx_t *ctx, VALUE known_klass, insn_opnd_ https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L2982
         // Note that in case the sample instance has a singleton class that
         // doesn't attach to the sample instance, it means the sample instance
         // has an empty singleton class that hasn't been materialized yet. In
-        // this case, comparing against the sample instance doesn't gurantee
+        // this case, comparing against the sample instance doesn't guarantee
         // that its singleton class is empty, so we can't avoid the memory
         // access. As an example, `Object.new.singleton_class` is an object in
         // this situation.
@@ -4697,9 +4697,9 @@ gen_opt_getinlinecache(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb) https://github.com/ruby/ruby/blob/trunk/yjit_codegen.c#L4697
     return YJIT_END_BLOCK;
 }
 
-// Push the explict block parameter onto the temporary stack. Part of the
+// Push the explicit block parameter onto the temporary stack. Part of the
 // interpreter's scheme for avoiding Proc allocations when delegating
-// explict block parameters.
+// explicit block parameters.
 static codegen_status_t
 gen_getblockparamproxy(jitstate_t *jit, ctx_t *ctx, codeblock_t *cb)
 {
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]