Skip to content

Commit 291dc5c

Browse files
committed
Follow repo style, avoiding dd
1 parent 0189914 commit 291dc5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Language/control.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ my $a;
421421
{
422422
$a = do when .so { "foo" }
423423
};
424-
dd $a; # OUTPUT: «Any $a = Any␤»
424+
say $a; # OUTPUT: «(Any)␤»
425425
=end code
426426
427427
is explained since the C<do> block is abandoned before any value is stored or
@@ -432,7 +432,7 @@ my $a;
432432
{
433433
$a = do when .so { "foo" }
434434
};
435-
dd $a; # OUTPUT: «Bool $a = Bool::False␤»
435+
say $a; # OUTPUT: «False␤»
436436
=end code
437437
the block is not abandoned since the comparison is false, so C<$a> will actually
438438
get a value.

0 commit comments

Comments
 (0)