summaryrefslogtreecommitdiff
path: root/autodoc.pl
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2020-07-28 21:13:11 -0600
committerKarl Williamson <khw@cpan.org>2020-07-28 21:27:14 -0600
commit9164a823c0c614eea9b2a81917424bb035d7161a (patch)
treee777fee79db8e6ed224e0fff852d71313f61851f /autodoc.pl
parentf4b02d787ced7a9059cd0cb982dce7d0e04db386 (diff)
downloadperl-9164a823c0c614eea9b2a81917424bb035d7161a.tar.gz
autodoc.pl: Improve wording in perlapi/perlintern
It was referring to function, when in reality it is a definition.
Diffstat (limited to 'autodoc.pl')
-rw-r--r--autodoc.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/autodoc.pl b/autodoc.pl
index ef1464d6cf..aa45f317ef 100644
--- a/autodoc.pl
+++ b/autodoc.pl
@@ -234,7 +234,8 @@ sub docout ($$$) { # output the docs for one function
$name =~ s/\s*$//;
if ($flags =~ /D/) {
- $docs = "\n\nDEPRECATED! It is planned to remove this function from a
+ my $function = $flags =~ /n/ ? 'definition' : 'function';
+ $docs = "\n\nDEPRECATED! It is planned to remove this $function from a
future release of Perl. Do not use it for new code; remove it from
existing code.\n\n$docs";
}