Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
avoid a redeclaration warning if example code is run
  • Loading branch information
skids committed Dec 25, 2015
1 parent b385a5d commit 9a5d617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/Language/control.pod
Expand Up @@ -255,7 +255,7 @@ two differences C<unless> works the same as L<if>:
$_ = 1; unless False -> $a { $a.say } ; # says "False"
my $c = 0; say (1, (unless 0 { $c += 42; 2; }), 3, $c); # says "(1 2 3 42)"
my $c = 0; say (1, (unless 1 { $c += 42; 2; }), 3, $c); # says "(1 3 0)"
my $d = 0; say (1, (unless 1 { $d += 42; 2; }), 3, $d); # says "(1 3 0)"
=head3 X<with, orwith, without|control flow,with orwith without>
Expand Down

0 comments on commit 9a5d617

Please sign in to comment.