This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlapi: Clarify statement about av_push()
authorKarl Williamson <public@khwilliamson.com>
Sat, 22 Jan 2011 16:22:08 +0000 (09:22 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 29 Jan 2011 17:26:40 +0000 (10:26 -0700)
Contrary to the previous text, av_store() requires the user to deal with the
reference count of the scalar being added.

av.c

diff --git a/av.c b/av.c
index 8408220..776dafd 100644 (file)
--- a/av.c
+++ b/av.c
@@ -526,8 +526,7 @@ Perl_av_create_and_push(pTHX_ AV **const avp, SV *const val)
 =for apidoc av_push
 
 Pushes an SV onto the end of the array.  The array will grow automatically
-to accommodate the addition. Like C<av_store>, this takes ownership of one
-reference count.
+to accommodate the addition. This takes ownership of one reference count.
 
 =cut
 */