summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohn Bampton <[email protected]>2020-12-13 17:26:24 +1000
committerJohn Bampton <[email protected]>2020-12-13 18:38:22 +1000
commit940dec5e7df1c4c7ec131073bd364ddd59d4b48c (patch)
tree77b0097e93d105368890ab0611801225e72f7ec6 /src
parent116e128b1a103e2fb246cc9d53b82246b24dbd40 (diff)
downloadmruby-940dec5e7df1c4c7ec131073bd364ddd59d4b48c.tar.gz
mruby-940dec5e7df1c4c7ec131073bd364ddd59d4b48c.zip
Fix spelling
Diffstat (limited to 'src')
-rw-r--r--src/gc.c2
-rw-r--r--src/string.c2
-rw-r--r--src/vm.c4
3 files changed, 4 insertions, 4 deletions
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(&regs[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;
}