From f9c2ea2f11bf0a44a6866ee7ebc6901b0355041b Mon Sep 17 00:00:00 2001 From: John Bampton Date: Mon, 22 Apr 2024 00:00:41 +1000 Subject: [PATCH] Fix grammar in `src/vm.c`; `catched` -> `caught` Saying 'catched' instead of 'caught' is a grammatical error --- src/vm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vm.c b/src/vm.c index d933be05e..b158a7551 100644 --- a/src/vm.c +++ b/src/vm.c @@ -1438,13 +1438,13 @@ mrb_vm_exec(mrb_state *mrb, const struct RProc *proc, const mrb_code *pc) }; #endif - volatile mrb_bool exc_catched = FALSE; + volatile mrb_bool exc_caught = FALSE; RETRY_TRY_BLOCK: MRB_TRY(&c_jmp) { - if (exc_catched) { - exc_catched = FALSE; + if (exc_caught) { + exc_caught = FALSE; mrb_gc_arena_restore(mrb, ai); if (mrb->exc && mrb->exc->tt == MRB_TT_BREAK) goto L_BREAK; @@ -3136,7 +3136,7 @@ RETRY_TRY_BLOCK: while (ci > mrb->c->cibase && ci->cci == CINFO_DIRECT) { ci = cipop(mrb); } - exc_catched = TRUE; + exc_caught = TRUE; pc = ci->pc; goto RETRY_TRY_BLOCK; }