Skip to content

Commit 71c8d6e

Browse files
authored
Update Block.pod6
Proper examples should go to /language/variables. I added the hint mostly to be able to link to the description of the Topic. I believe the Topic is quite an important topic and deserves more love. Just not here.
1 parent b19f1f1 commit 71c8d6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Block.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ A C<Block> is a code object meant for small-scale code reuse. A block is
1010
created syntactically by a list of statements enclosed in curly braces.
1111
1212
Without an explicit signature or placeholder arguments, a block has C<$_>
13-
as a positional argument. Which defaults to the outer scope's $_. Thus it
14-
will inherit the L<topic|/language/variables#index-entry-topic_variable> if possible.
13+
as a positional argument, which defaults to the outer scope's C<$_>. Thus it
14+
will inherit the L<topic|/language/variables#index-entry-topic_variable> if there is any.
1515
1616
my $block = { uc $_; };
1717
say $block.^name; # OUTPUT: «Block␤»

0 commit comments

Comments
 (0)