summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorJohn Bampton <jbampton@users.noreply.github.com>2023-02-28 03:56:06 +1000
committerGitHub <noreply@github.com>2023-02-27 09:56:06 -0800
commit2f7270c68150d9f49b48c8ff995f4f343d216cee (patch)
treed3610c4a0980667982cdd4952572ba1a7d583046 /compile.c
parent526111290b2e01e798f436dfe4acc3bf10c6bbd1 (diff)
downloadruby-2f7270c68150d9f49b48c8ff995f4f343d216cee.tar.gz
Fix spelling (#7389)
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index cdea789afd..742ddf9d98 100644
--- a/compile.c
+++ b/compile.c
@@ -4847,7 +4847,7 @@ when_vals(rb_iseq_t *iseq, LINK_ANCHOR *const cond_seq, const NODE *vals,
if (!COMPILE(cond_seq, "when cond", val)) return -1;
}
- // Emit patern === target
+ // Emit pattern === target
ADD_INSN1(cond_seq, vals, topn, INT2FIX(1));
ADD_CALL(cond_seq, vals, idEqq, INT2FIX(1));
ADD_INSNL(cond_seq, val, branchif, l1);