aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-03-29 11:47:12 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-03-29 11:47:12 -0300
commitbef250eb8d44ba58fa04f82df7550a79b068d2d0 (patch)
tree62c7ca754b529b907c701e93a1e8f364904a7907 /lstate.c
parentba81adaad9a72530d1ac81149a1fdd154b010b06 (diff)
downloadlua-bef250eb8d44ba58fa04f82df7550a79b068d2d0.tar.gz
lua-bef250eb8d44ba58fa04f82df7550a79b068d2d0.tar.bz2
lua-bef250eb8d44ba58fa04f82df7550a79b068d2d0.zip
Details
Comments and small improvements in the manual.
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lstate.c b/lstate.c
index c5e3b437..bfc59026 100644
--- a/lstate.c
+++ b/lstate.c
@@ -269,7 +269,7 @@ static void preinit_thread (lua_State *L, global_State *g) {
269static void close_state (lua_State *L) { 269static void close_state (lua_State *L) {
270 global_State *g = G(L); 270 global_State *g = G(L);
271 if (!completestate(g)) /* closing a partially built state? */ 271 if (!completestate(g)) /* closing a partially built state? */
272 luaC_freeallobjects(L); /* jucst collect its objects */ 272 luaC_freeallobjects(L); /* just collect its objects */
273 else { /* closing a fully built state */ 273 else { /* closing a fully built state */
274 luaD_closeprotected(L, 1, LUA_OK); /* close all upvalues */ 274 luaD_closeprotected(L, 1, LUA_OK); /* close all upvalues */
275 luaC_freeallobjects(L); /* collect all objects */ 275 luaC_freeallobjects(L); /* collect all objects */