summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Leach <richardleach@users.noreply.github.com>2021-07-05 10:52:46 +0100
committerHugo van der Sanden <hv@crypt.org>2021-07-06 19:07:13 +0100
commit158b05f88107501586f35dde9afd3c1444e148e1 (patch)
tree7018a27252fe018214baf65e68b4d9fb1c99dfcd
parent1a93d8dfa8d615bf87ff5bc034f28f47b20208a8 (diff)
downloadperl-158b05f88107501586f35dde9afd3c1444e148e1.tar.gz
av_new_alloc: revise description of size parameter
-rw-r--r--av.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/av.c b/av.c
index afac896dda..d2f0e0db45 100644
--- a/av.c
+++ b/av.c
@@ -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
*/