Skip to content

Commit 9a5d617

Browse files
committed
avoid a redeclaration warning if example code is run
1 parent b385a5d commit 9a5d617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/control.pod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ two differences C<unless> works the same as L<if>:
255255
$_ = 1; unless False -> $a { $a.say } ; # says "False"
256256
257257
my $c = 0; say (1, (unless 0 { $c += 42; 2; }), 3, $c); # says "(1 2 3 42)"
258-
my $c = 0; say (1, (unless 1 { $c += 42; 2; }), 3, $c); # says "(1 3 0)"
258+
my $d = 0; say (1, (unless 1 { $d += 42; 2; }), 3, $d); # says "(1 3 0)"
259259
260260
=head3 X<with, orwith, without|control flow,with orwith without>
261261

0 commit comments

Comments
 (0)