Fix some ldoc mistakes

This commit is contained in:
Jeremy Baxter 2023-07-30 10:05:16 +12:00
parent 479e6ef5ec
commit 57a4014981
2 changed files with 2 additions and 2 deletions

View file

@ -19,7 +19,7 @@ file = {
".", ".",
exclude = { exclude = {
"external", "external",
"lua-5.4" "lua-5.4/lua.h"
} }
} }

View file

@ -379,7 +379,7 @@ static int db_sethook (lua_State *L) {
if (!luaL_getsubtable(L, LUA_REGISTRYINDEX, HOOKKEY)) { if (!luaL_getsubtable(L, LUA_REGISTRYINDEX, HOOKKEY)) {
/* table just created; initialize it */ /* table just created; initialize it */
lua_pushliteral(L, "k"); lua_pushliteral(L, "k");
lua_setfield(L, -2, "__mode"); /** hooktable.__mode = "k" */ lua_setfield(L, -2, "__mode"); /* hooktable.__mode = "k" */
lua_pushvalue(L, -1); lua_pushvalue(L, -1);
lua_setmetatable(L, -2); /* metatable(hooktable) = hooktable */ lua_setmetatable(L, -2); /* metatable(hooktable) = hooktable */
} }