From 514d94274853e6f0dfd6bb2ffa2e1fc64db926dd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 3 Jun 2019 13:11:20 -0300 Subject: 'coroutine.kill' renamed 'coroutine.close' --- lcorolib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lcorolib.c') diff --git a/lcorolib.c b/lcorolib.c index 3fc9fb1c..156839e6 100644 --- a/lcorolib.c +++ b/lcorolib.c @@ -165,7 +165,7 @@ static int luaB_corunning (lua_State *L) { } -static int luaB_kill (lua_State *L) { +static int luaB_close (lua_State *L) { lua_State *co = getco(L); int status = auxstatus(L, co); switch (status) { @@ -182,7 +182,7 @@ static int luaB_kill (lua_State *L) { } } default: /* normal or running coroutine */ - return luaL_error(L, "cannot kill a %s coroutine", statname[status]); + return luaL_error(L, "cannot close a %s coroutine", statname[status]); } } @@ -195,7 +195,7 @@ static const luaL_Reg co_funcs[] = { {"wrap", luaB_cowrap}, {"yield", luaB_yield}, {"isyieldable", luaB_yieldable}, - {"kill", luaB_kill}, + {"close", luaB_close}, {NULL, NULL} }; -- cgit v1.2.3-55-g6feb