This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlapi: Slight improvement to sv_2pvbyte
authorKarl Williamson <khw@cpan.org>
Sat, 29 Aug 2020 19:55:13 +0000 (13:55 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 14 Sep 2020 03:13:58 +0000 (21:13 -0600)
sv.c

diff --git a/sv.c b/sv.c
index b259ace..08d708c 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -3304,11 +3304,13 @@ Perl_sv_copypv_flags(pTHX_ SV *const dsv, SV *const ssv, const I32 flags)
 /*
 =for apidoc sv_2pvbyte
 
-Return a pointer to the byte-encoded representation of the SV, and set C<*lp>
+Returns a pointer to the byte-encoded representation of the SV, and set C<*lp>
 to its length.  If the SV is marked as being encoded as UTF-8, it will
 downgrade it to a byte string as a side-effect, if possible.  If the SV cannot
 be downgraded, this croaks.
 
+Processes 'get' magic.
+
 Usually accessed via the C<SvPVbyte> macro.
 
 =cut