Skip to content

Commit c43fbe4

Browse files
authored
Fix spelling (ruby#7405)
1 parent 966adfb commit c43fbe4

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

benchmark/so_meteor_contest.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ def print_results
447447
# as an inverse. The inverse will ALWAYS be 3 one of the piece configurations that is exactly 3 rotations away
448448
# (an odd number). Checking even vs odd then produces a higher probability of finding more pieces earlier
449449
# in the cycle. We still need to keep checking all the permutations, but our probability of finding one will
450-
# diminsh over time. Since we are TOLD how many to search for this lets us exit before checking all pieces
450+
# diminish over time. Since we are TOLD how many to search for this lets us exit before checking all pieces
451451
# this bennifit is very great when seeking small numbers of solutions and is 0 when looking for more than the
452452
# maximum number
453453
def find_top( rotation_skip)

darray.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
#define rb_darray_foreach(ary, idx_name, elem_ptr_var) \
7171
for (size_t idx_name = 0; idx_name < rb_darray_size(ary) && ((elem_ptr_var) = rb_darray_ref(ary, idx_name)); ++idx_name)
7272

73-
// Iterate over valid indicies in the array in a for loop
73+
// Iterate over valid indices in the array in a for loop
7474
//
7575
#define rb_darray_for(ary, idx_name) \
7676
for (size_t idx_name = 0; idx_name < rb_darray_size(ary); ++idx_name)

io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ io_allocate_write_buffer(rb_io_t *fptr, int sync)
18381838
static inline int
18391839
io_binwrite_requires_flush_write(rb_io_t *fptr, long len, int nosync)
18401840
{
1841-
// If the requested operation was synchronous and the output mode is synchronus or a TTY:
1841+
// If the requested operation was synchronous and the output mode is synchronous or a TTY:
18421842
if (!nosync && (fptr->mode & (FMODE_SYNC|FMODE_TTY)))
18431843
return 1;
18441844

struct.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ rb_data_s_def(int argc, VALUE *argv, VALUE klass)
17511751
* Measure.new(amount: 1, unit: 'km')
17521752
* #=> #<data Measure amount=1, unit="km">
17531753
*
1754-
* # Alternative shorter intialization with []
1754+
* # Alternative shorter initialization with []
17551755
* Measure[1, 'km']
17561756
* #=> #<data Measure amount=1, unit="km">
17571757
* Measure[amount: 1, unit: 'km']

variable.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2721,7 +2721,7 @@ rb_autoload_load(VALUE module, ID name)
27212721
rb_raise(rb_eRactorUnsafeError, "require by autoload on non-main Ractor is not supported (%s)", rb_id2name(name));
27222722
}
27232723

2724-
// This state is stored on thes stack and is used during the autoload process.
2724+
// This state is stored on the stack and is used during the autoload process.
27252725
struct autoload_load_arguments arguments = {.module = module, .name = name, .mutex = Qnil};
27262726

27272727
// Figure out whether we can autoload the named constant:

0 commit comments

Comments
 (0)