Skip to content

Commit 86b41f5

Browse files
committed
Fix code compilation
1 parent 5607305 commit 86b41f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/Type/Any.pod6

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,8 +823,8 @@ L<Iterates|/routine/iterator> over the invocant, producing a L<Seq>, toggling
823823
whether the received values are propagated to the result on and off, depending
824824
on the results of calling L<Callables|/type/Callable> in C<@conditions>:
825825
826-
say (1..15).toggle(* < 5, * > 10, * < 15) # OUTPUT: «(1 2 3 4 11 12 13 14)␤»
827-
say (1..15).toggle(:off, * > 2, * < 5, * > 10, * < 15) # OUTPUT: «(3 4 11 12 13 14)␤»
826+
say (1..15).toggle(* < 5, * > 10, * < 15); # OUTPUT: «(1 2 3 4 11 12 13 14)␤»
827+
say (1..15).toggle(:off, * > 2, * < 5, * > 10, * < 15); # OUTPUT: «(3 4 11 12 13 14)␤»
828828
829829
Imagine a switch that's either on or off (C<True> or C<False>), and values are
830830
produced if it's on. By default, the initial state of that switch is in "on"

0 commit comments

Comments
 (0)