From d13788a4edb6d86ce8fed0c8fba1cfd64ff0f458 Mon Sep 17 00:00:00 2001 From: Ico Doornekamp Date: Mon, 29 May 2023 22:02:06 +0200 Subject: [PATCH] Updated documentation for buffer/push-at --- src/core/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/buffer.c b/src/core/buffer.c index 55931ead..84f8fe08 100644 --- a/src/core/buffer.c +++ b/src/core/buffer.c @@ -324,7 +324,8 @@ static void buffer_push_impl(JanetBuffer *buffer, Janet *argv, int32_t argc_offs JANET_CORE_FN(cfun_buffer_push_at, "(buffer/push-at buffer index & xs)", - "Same as buffer/push, but inserts new data at index `index`.") { + "Same as buffer/push, but copies the new data into the buffer " + " at index `index`.") { janet_arity(argc, 2, -1); JanetBuffer *buffer = janet_getbuffer(argv, 0); int32_t index = janet_getinteger(argv, 1);