From 940dec5e7df1c4c7ec131073bd364ddd59d4b48c Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 13 Dec 2020 17:26:24 +1000 Subject: Fix spelling --- src/gc.c | 2 +- src/string.c | 2 +- src/vm.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/gc.c b/src/gc.c index fb3a7bd16..83454fa5c 100644 --- a/src/gc.c +++ b/src/gc.c @@ -45,7 +45,7 @@ == Two White Types - There're two white color types in a flip-flop fashion: White-A and White-B, + There are two white color types in a flip-flop fashion: White-A and White-B, which respectively represent the Current White color (the newly allocated objects in the current GC cycle) and the Sweep Target White color (the dead objects to be swept). diff --git a/src/string.c b/src/string.c index cf71914b3..4d09c7eab 100644 --- a/src/string.c +++ b/src/string.c @@ -2997,7 +2997,7 @@ mrb_float_read(const char *string, char **endPtr) int c; int exp = 0; /* Exponent read from "EX" field. */ int fracExp = 0; /* Exponent that derives from the fractional - * part. Under normal circumstatnces, it is + * part. Under normal circumstances, it is * the negative of the number of digits in F. * However, if I is very long, the last digits * of I get dropped (otherwise a long I with a diff --git a/src/vm.c b/src/vm.c index b56e960a2..76bd541c3 100644 --- a/src/vm.c +++ b/src/vm.c @@ -1840,11 +1840,11 @@ RETRY_TRY_BLOCK: if (mlen < m2) { stack_clear(®s[len-m2+mlen+1], m2-mlen); } - /* initalize rest arguments with empty Array */ + /* initialize rest arguments with empty Array */ if (r) { regs[m1+o+1] = mrb_ary_new_capa(mrb, 0); } - /* skip initailizer of passed arguments */ + /* skip initializer of passed arguments */ if (o > 0 && argc-kargs > m1+m2) pc += (argc - kargs - m1 - m2)*3; } -- cgit v1.2.3