mirror of
https://github.com/janet-lang/janet
synced 2024-11-25 01:37:19 +00:00
Updated documentation for buffer/push-at
This commit is contained in:
parent
4aca94154f
commit
d13788a4ed
@ -324,7 +324,8 @@ static void buffer_push_impl(JanetBuffer *buffer, Janet *argv, int32_t argc_offs
|
|||||||
|
|
||||||
JANET_CORE_FN(cfun_buffer_push_at,
|
JANET_CORE_FN(cfun_buffer_push_at,
|
||||||
"(buffer/push-at buffer index & xs)",
|
"(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);
|
janet_arity(argc, 2, -1);
|
||||||
JanetBuffer *buffer = janet_getbuffer(argv, 0);
|
JanetBuffer *buffer = janet_getbuffer(argv, 0);
|
||||||
int32_t index = janet_getinteger(argv, 1);
|
int32_t index = janet_getinteger(argv, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user