spelling: occurred

This commit is contained in:
Josh Soref 2021-11-04 00:35:30 -04:00
parent 91d62c4c71
commit f87fc7a293
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ static int costatus(lua_State* L, lua_State* co)
return CO_SUS; return CO_SUS;
if (co->status == LUA_BREAK) if (co->status == LUA_BREAK)
return CO_NOR; return CO_NOR;
if (co->status != 0) /* some error occured */ if (co->status != 0) /* some error occurred */
return CO_DEAD; return CO_DEAD;
if (co->ci != co->base_ci) /* does it have frames? */ if (co->ci != co->base_ci) /* does it have frames? */
return CO_NOR; return CO_NOR;

View file

@ -532,7 +532,7 @@ int luaD_pcall(lua_State* L, Pfunc func, void* u, ptrdiff_t old_top, ptrdiff_t e
status = LUA_ERRERR; 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) if (L->global->cb.debugprotectederror)
{ {
L->global->cb.debugprotectederror(L); L->global->cb.debugprotectederror(L);