Skip to content

Commit e46f837

Browse files
committed
Link to traps anyway
It's OK to have small pieces of information copied. However, traps section is a bit more elaborate on another issue (deepmap semantics), so a link is appropriate.
1 parent 57e456d commit e46f837

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/Language/operators.pod6

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -621,8 +621,10 @@ X<Hyper method call operator>. Will call a method on all elements of a C<List> o
621621
say @a».&foo; # So we can pretend to have a method call with a sub that got a good first positional argument.
622622
say @a».&{ .ord}; # Blocks have an implicit positional arguments that lands in $_. The latter can be omitted for method calls.
623623
624-
Take care to avoid a common mistake of expecting side-effects to occur in order. The following
625-
C<say> is B<not> guaranteed to produce the output in order:
624+
Take care to avoid a
625+
L<common mistake|/language/traps#Using_»_and_map_interchangeably> of expecting
626+
side-effects to occur in order. The following C<say> is B<not>
627+
guaranteed to produce the output in order:
626628
627629
=begin code :skip-test
628630
@a».say; # WRONG! Could produce a␤b␤c␤ or c␤b␤a␤ or any other order

0 commit comments

Comments
 (0)