Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add missing uv.os_unsetenv() parameter #667

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

notomo
Copy link
Contributor

@notomo notomo commented Aug 22, 2023

uv.os_unsetenv takes a name parameter.

📝 code

luv/src/misc.c

Lines 498 to 506 in 8ca04df

static int luv_os_unsetenv(lua_State* L) {
const char* name = luaL_checkstring(L, 1);
int ret = uv_os_unsetenv(name);
if (ret == 0)
lua_pushboolean(L, 1);
else
return luv_error(L, ret);
return 1;
}

@zhaozg
Copy link
Member

zhaozg commented Aug 22, 2023

Thanks

@zhaozg zhaozg merged commit 0e301f7 into luvit:master Aug 22, 2023
13 checks passed
@notomo notomo deleted the docs-unsetenv-param branch August 22, 2023 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants