diff options
Diffstat (limited to 'lcorolib.c')
-rw-r--r-- | lcorolib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -165,7 +165,7 @@ static int luaB_corunning (lua_State *L) { | |||
165 | } | 165 | } |
166 | 166 | ||
167 | 167 | ||
168 | static int luaB_kill (lua_State *L) { | 168 | static int luaB_close (lua_State *L) { |
169 | lua_State *co = getco(L); | 169 | lua_State *co = getco(L); |
170 | int status = auxstatus(L, co); | 170 | int status = auxstatus(L, co); |
171 | switch (status) { | 171 | switch (status) { |
@@ -182,7 +182,7 @@ static int luaB_kill (lua_State *L) { | |||
182 | } | 182 | } |
183 | } | 183 | } |
184 | default: /* normal or running coroutine */ | 184 | default: /* normal or running coroutine */ |
185 | return luaL_error(L, "cannot kill a %s coroutine", statname[status]); | 185 | return luaL_error(L, "cannot close a %s coroutine", statname[status]); |
186 | } | 186 | } |
187 | } | 187 | } |
188 | 188 | ||
@@ -195,7 +195,7 @@ static const luaL_Reg co_funcs[] = { | |||
195 | {"wrap", luaB_cowrap}, | 195 | {"wrap", luaB_cowrap}, |
196 | {"yield", luaB_yield}, | 196 | {"yield", luaB_yield}, |
197 | {"isyieldable", luaB_yieldable}, | 197 | {"isyieldable", luaB_yieldable}, |
198 | {"kill", luaB_kill}, | 198 | {"close", luaB_close}, |
199 | {NULL, NULL} | 199 | {NULL, NULL} |
200 | }; | 200 | }; |
201 | 201 | ||