summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-07-21 18:03:50 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2020-07-21 18:03:50 +0100
commitcd2e51706549cce2bb41a8626714db92f4b9eb68 (patch)
tree5565ad6ac07ec0befca12a0b4b4171b0431d38df
parent677f8b877a0dfa75cfc6c004b3b9b406da6c73a5 (diff)
downloadperl-cd2e51706549cce2bb41a8626714db92f4b9eb68.tar.gz
warnings: fix missed `$c` in previous commit
Thanks @Grinnz for spotting.
-rw-r--r--lib/warnings.pm2
-rw-r--r--regen/warnings.pl2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/warnings.pm b/lib/warnings.pm
index 195cc47635..a7894f65d6 100644
--- a/lib/warnings.pm
+++ b/lib/warnings.pm
@@ -629,7 +629,7 @@ For example, consider the code below:
The code in the enclosing block has warnings enabled, but the inner
block has them disabled. In this case that means the assignment to the
-scalar C<$c> will trip the C<"Scalar value @x[0] better written as $x[0]">
+scalar C<$z> will trip the C<"Scalar value @x[0] better written as $x[0]">
warning, but the assignment to the scalar C<$y> will not.
=head2 Default Warnings and Optional Warnings
diff --git a/regen/warnings.pl b/regen/warnings.pl
index 9c802722f4..4907666b77 100644
--- a/regen/warnings.pl
+++ b/regen/warnings.pl
@@ -952,7 +952,7 @@ For example, consider the code below:
The code in the enclosing block has warnings enabled, but the inner
block has them disabled. In this case that means the assignment to the
-scalar C<$c> will trip the C<"Scalar value @x[0] better written as $x[0]">
+scalar C<$z> will trip the C<"Scalar value @x[0] better written as $x[0]">
warning, but the assignment to the scalar C<$y> will not.
=head2 Default Warnings and Optional Warnings