Skip to content

Commit

Permalink
Merge pull request #1169 from zevv/fix-buffer-push-at-doc
Browse files Browse the repository at this point in the history
Updated documentation for buffer/push-at
  • Loading branch information
bakpakin authored May 29, 2023
2 parents 4aca941 + d13788a commit 82e51f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 82e51f9

Please sign in to comment.