From 7f148522ab732497e5a54aedb375c61b6d703cd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20Pospi=CC=81s=CC=8Cil?= Date: Tue, 12 Sep 2023 09:34:21 +0200 Subject: [PATCH] Document array/push variadic argument --- src/core/array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/array.c b/src/core/array.c index eb5d37d2..3923a4e1 100644 --- a/src/core/array.c +++ b/src/core/array.c @@ -177,8 +177,8 @@ JANET_CORE_FN(cfun_array_peek, } JANET_CORE_FN(cfun_array_push, - "(array/push arr x)", - "Insert an element in the end of an array. Modifies the input array and returns it.") { + "(array/push arr & xs)", + "Push all the elements of xs to the end of an array. Modifies the input array and returns it.") { janet_arity(argc, 1, -1); JanetArray *array = janet_getarray(argv, 0); if (INT32_MAX - argc + 1 <= array->count) {