diff options
author | Karl Williamson <khw@cpan.org> | 2020-07-28 21:13:11 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-07-28 21:27:14 -0600 |
commit | 9164a823c0c614eea9b2a81917424bb035d7161a (patch) | |
tree | e777fee79db8e6ed224e0fff852d71313f61851f | |
parent | f4b02d787ced7a9059cd0cb982dce7d0e04db386 (diff) | |
download | perl-9164a823c0c614eea9b2a81917424bb035d7161a.tar.gz |
autodoc.pl: Improve wording in perlapi/perlintern
It was referring to function, when in reality it is a definition.
-rw-r--r-- | autodoc.pl | 3 |
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"; } |