This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlapi: Move 'experimental' warning to front of entries
authorKarl Williamson <public@khwilliamson.com>
Tue, 7 May 2013 16:04:40 +0000 (10:04 -0600)
committerKarl Williamson <public@khwilliamson.com>
Mon, 20 May 2013 17:01:51 +0000 (11:01 -0600)
In a long multi-paragraph entry, the fact that the described function is
considered experimental may be lost, as it comes at the end.  This just
moves it to the front.

autodoc.pl

index 6fea970..59dc6f0 100644 (file)
@@ -178,8 +178,8 @@ future release of Perl.  Do not use it for new code; remove it from
 existing code.\n\n$docs";
     }
     else {
-        $docs .= "NOTE: this function is experimental and may change or be
-removed without notice.\n\n" if $flags =~ /x/;
+        $docs = "\n\nNOTE: this function is experimental and may change or be
+removed without notice.\n\n$docs" if $flags =~ /x/;
     }
     $docs .= "NOTE: the perl_ form of this function is deprecated.\n\n"
        if $flags =~ /p/;