summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2017-11-29 23:33:33 +0000
committerZefram <zefram@fysh.org>2017-11-29 23:33:33 +0000
commit40b0df696c4f45c9e0e43ec2121b53bc06a586db (patch)
tree8a45e544c9c0eff5d9c95ff4029a9f4afb657737 /pod
parentb1a6328e96a123f6ca713df406f01c2f4a2f2b7b (diff)
downloadperl-40b0df696c4f45c9e0e43ec2121b53bc06a586db.tar.gz
make "outside a loop" error messages consistent
The message for leaving a "when" block outside a loop had different wording from the message for performing "next" et al outside a loop. Make the "when" message consistent with the existing loop control ones.
Diffstat (limited to 'pod')
-rw-r--r--pod/perldiag.pod2
1 files changed, 1 insertions, 1 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 005147536f..9ded5065ab 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1076,7 +1076,7 @@ usually double the curlies to get the same effect though, because the
inner curlies will be considered a block that loops once. See
L<perlfunc/last>.
-=item Can't leave "when" outside a loop
+=item Can't leave "when" outside a loop block
(F) Control reached the end of a C<when> block that isn't inside any
loop (including a C<given> block). An implicit C<next> occurs here,