Skip to content

Commit

Permalink
av_new_alloc: revise description of size parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
richardleach authored and hvds committed Jul 6, 2021
1 parent 1a93d8d commit 158b05f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions av.c
Expand Up @@ -403,11 +403,10 @@ This is similar to but more efficient than doing:
AV *av = newAV();
av_extend(av, key);
The zeroflag parameter controls whether the array is NULL initialized.
The size parameter is used to pre-allocate a SV* array large enough to
hold at least elements 0..(size-1). size must be at least 1.
Note that av_index() takes the desired AvMAX as its key parameter, but
av_new_alloc() instead takes the desired size (so AvMAX + 1). This
size must be at least 1.
The zeroflag parameter controls whether the array is NULL initialized.
=cut
*/
Expand Down

0 comments on commit 158b05f

Please sign in to comment.