1
0
mirror of https://github.com/janet-lang/janet synced 2024-09-28 07:08:14 +00:00

Merge pull request #186 from quexxon/fix-array-ensure-documentation

Add missing documentation for array/ensure's growth parameter
This commit is contained in:
Calvin Rose 2019-11-29 22:39:04 -05:00 committed by GitHub
commit bf609445c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,11 +261,11 @@ static const JanetReg array_cfuns[] = {
},
{
"array/ensure", cfun_array_ensure,
JDOC("(array/ensure arr capacity)\n\n"
JDOC("(array/ensure arr capacity growth)\n\n"
"Ensures that the memory backing the array is large enough for capacity "
"items. Capacity must be an integer. If the backing capacity is already enough, "
"then this function does nothing. Otherwise, the backing memory will be reallocated "
"so that there is enough space.")
"items at the given rate of growth. Capacity and growth must be integers. "
"If the backing capacity is already enough, then this function does nothing. "
"Otherwise, the backing memory will be reallocated so that there is enough space.")
},
{
"array/slice", cfun_array_slice,