Mention in apidocs that av_push takes ownership of a refcount
authorSteffen Mueller <smueller@cpan.org>
Fri, 31 Jul 2009 09:14:26 +0000 (11:14 +0200)
committerDavid Mitchell <davem@iabyn.com>
Mon, 3 Aug 2009 21:29:41 +0000 (22:29 +0100)
(cherry picked from commit f629640b47d85ee716c01ebff7cc36202d0f9bb9)

av.c

diff --git a/av.c b/av.c
index d9a80bc..6d6f209 100644 (file)
--- a/av.c
+++ b/av.c
@@ -527,7 +527,8 @@ 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.
+to accommodate the addition. Like C<av_store>, this takes ownership of one
+reference count.
 
 =cut
 */