From c43fbe4ebd2b519601f0b90ca98fa096799d3846 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Wed, 1 Mar 2023 04:05:30 +1000 Subject: [PATCH] Fix spelling (#7405) --- benchmark/so_meteor_contest.rb | 2 +- darray.h | 2 +- io.c | 2 +- struct.c | 2 +- variable.c | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/benchmark/so_meteor_contest.rb b/benchmark/so_meteor_contest.rb index 8c136baa6c..d8c8e3ab9c 100644 --- a/benchmark/so_meteor_contest.rb +++ b/benchmark/so_meteor_contest.rb @@ -447,7 +447,7 @@ end # as an inverse. The inverse will ALWAYS be 3 one of the piece configurations that is exactly 3 rotations away # (an odd number). Checking even vs odd then produces a higher probability of finding more pieces earlier # in the cycle. We still need to keep checking all the permutations, but our probability of finding one will -# diminsh over time. Since we are TOLD how many to search for this lets us exit before checking all pieces +# diminish over time. Since we are TOLD how many to search for this lets us exit before checking all pieces # this bennifit is very great when seeking small numbers of solutions and is 0 when looking for more than the # maximum number def find_top( rotation_skip) diff --git a/darray.h b/darray.h index c9a53f1e01..7183041f03 100644 --- a/darray.h +++ b/darray.h @@ -70,7 +70,7 @@ #define rb_darray_foreach(ary, idx_name, elem_ptr_var) \ for (size_t idx_name = 0; idx_name < rb_darray_size(ary) && ((elem_ptr_var) = rb_darray_ref(ary, idx_name)); ++idx_name) -// Iterate over valid indicies in the array in a for loop +// Iterate over valid indices in the array in a for loop // #define rb_darray_for(ary, idx_name) \ for (size_t idx_name = 0; idx_name < rb_darray_size(ary); ++idx_name) diff --git a/io.c b/io.c index 76353cb6e0..dcc9d9b038 100644 --- a/io.c +++ b/io.c @@ -1838,7 +1838,7 @@ io_allocate_write_buffer(rb_io_t *fptr, int sync) static inline int io_binwrite_requires_flush_write(rb_io_t *fptr, long len, int nosync) { - // If the requested operation was synchronous and the output mode is synchronus or a TTY: + // If the requested operation was synchronous and the output mode is synchronous or a TTY: if (!nosync && (fptr->mode & (FMODE_SYNC|FMODE_TTY))) return 1; diff --git a/struct.c b/struct.c index 86f98dde5a..14fe100412 100644 --- a/struct.c +++ b/struct.c @@ -1751,7 +1751,7 @@ rb_data_s_def(int argc, VALUE *argv, VALUE klass) * Measure.new(amount: 1, unit: 'km') * #=> # * - * # Alternative shorter intialization with [] + * # Alternative shorter initialization with [] * Measure[1, 'km'] * #=> # * Measure[amount: 1, unit: 'km'] diff --git a/variable.c b/variable.c index 692d158a8c..26a00db7c4 100644 --- a/variable.c +++ b/variable.c @@ -2721,7 +2721,7 @@ rb_autoload_load(VALUE module, ID name) rb_raise(rb_eRactorUnsafeError, "require by autoload on non-main Ractor is not supported (%s)", rb_id2name(name)); } - // This state is stored on thes stack and is used during the autoload process. + // This state is stored on the stack and is used during the autoload process. struct autoload_load_arguments arguments = {.module = module, .name = name, .mutex = Qnil}; // Figure out whether we can autoload the named constant: