1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-25 09:47:17 +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
commit 8be3ce18aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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