From f87fc7a293af47e0f62a1d5408b798191bcd2912 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 4 Nov 2021 00:35:30 -0400 Subject: [PATCH] spelling: occurred --- VM/src/lcorolib.cpp | 2 +- VM/src/ldo.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VM/src/lcorolib.cpp b/VM/src/lcorolib.cpp index c0b50b96..a2515ba0 100644 --- a/VM/src/lcorolib.cpp +++ b/VM/src/lcorolib.cpp @@ -25,7 +25,7 @@ static int costatus(lua_State* L, lua_State* co) return CO_SUS; if (co->status == LUA_BREAK) return CO_NOR; - if (co->status != 0) /* some error occured */ + if (co->status != 0) /* some error occurred */ return CO_DEAD; if (co->ci != co->base_ci) /* does it have frames? */ return CO_NOR; diff --git a/VM/src/ldo.cpp b/VM/src/ldo.cpp index ee4962a5..77366714 100644 --- a/VM/src/ldo.cpp +++ b/VM/src/ldo.cpp @@ -532,7 +532,7 @@ int luaD_pcall(lua_State* L, Pfunc func, void* u, ptrdiff_t old_top, ptrdiff_t e status = LUA_ERRERR; } - // an error occured, check if we have a protected error callback + // an error occurred, check if we have a protected error callback if (L->global->cb.debugprotectederror) { L->global->cb.debugprotectederror(L);