diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2021-12-25 10:33:49 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2021-12-25 10:33:49 +0900 |
commit | 04f07713d19cbde1f2d23d7f3b2318a0a84bab5b (patch) | |
tree | 216e664d3aae783d13ae116a1adac38e15d3c2de | |
parent | d100c91445529395d208bb8ff46914670935afa9 (diff) |
Fix typos [ci skip]
-rw-r--r-- | include/ruby/fiber/scheduler.h | 2 | ||||
-rw-r--r-- | io_buffer.c | 2 | ||||
-rw-r--r-- | marshal.c | 2 | ||||
-rw-r--r-- | struct.c | 2 | ||||
-rw-r--r-- | variable.c | 2 | ||||
-rw-r--r-- | yjit_asm.c | 2 | ||||
-rw-r--r-- | 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 14e36ffb3a..3ea52beb95 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) { } /** - * 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 fa28c59b32..5227a2a5b8 100644 --- a/io_buffer.c +++ b/io_buffer.c @@ -1843,7 +1843,7 @@ io_buffer_clear(int argc, VALUE *argv, VALUE self) 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: @@ -1456,7 +1456,7 @@ symname_equal(VALUE sym, const char *name, size_t nlen) } #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))) @@ -191,7 +191,7 @@ struct_member_pos(VALUE s, VALUE name) * 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 c2b8146f9a..eaad6eb497 100644 --- a/variable.c +++ b/variable.c @@ -1499,7 +1499,7 @@ rb_init_iv_list(VALUE obj) 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 64cbb163a2..9f84e3974b 100644 --- a/yjit_asm.c +++ b/yjit_asm.c @@ -1344,7 +1344,7 @@ void mov(codeblock_t *cb, x86opnd_t dst, x86opnd_t src) 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 528d9a45d7..8a547d2ef6 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 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) 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) // 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_ // 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) 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) { |