Skip to content

Commit

Permalink
Follow repo style, avoiding dd
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jan 31, 2019
1 parent 0189914 commit 291dc5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Language/control.pod6
Expand Up @@ -421,7 +421,7 @@ my $a;
{
$a = do when .so { "foo" }
};
dd $a; # OUTPUT: «Any $a = Any␤»
say $a; # OUTPUT: «(Any)␤»
=end code
is explained since the C<do> block is abandoned before any value is stored or
Expand All @@ -432,7 +432,7 @@ my $a;
{
$a = do when .so { "foo" }
};
dd $a; # OUTPUT: «Bool $a = Bool::False␤»
say $a; # OUTPUT: «False␤»
=end code
the block is not abandoned since the comparison is false, so C<$a> will actually
get a value.
Expand Down

0 comments on commit 291dc5c

Please sign in to comment.