1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-12 22:37:42 +00:00

Merge pull request #280 from pepe/fix-next-arity

Fix next function arity
This commit is contained in:
Calvin Rose
2020-02-03 18:00:36 -06:00
committed by GitHub

View File

@@ -990,7 +990,7 @@ JanetTable *janet_core_env(JanetTable *replacements) {
JDOC("(% dividend divisor)\n\n"
"Returns the remainder of dividend / divisor."));
janet_quick_asm(env, JANET_FUN_NEXT,
"next", 2, 2, 2, 2, next_asm, sizeof(next_asm),
"next", 2, 1, 2, 2, next_asm, sizeof(next_asm),
JDOC("(next ds &opt key)\n\n"
"Gets the next key in a datastructure. Can be used to iterate through "
"the keys of a data structure in an unspecified order. Keys are guaranteed "