Skip to content

Commit 8a47e81

Browse files
committed
explicit output
closes #4316
1 parent a752eeb commit 8a47e81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/Language/variables.rakudoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ This works per "clone" of the containing code object, as in this
760760
example:
761761

762762
=for code
763-
({ state $i = 1; $i++.say; } xx 3).map: {$_(), $_()}; # says 1 then 2 thrice
763+
({ state $i = 1; $i++.say; } xx 3).map: {$_(), $_()}; # OUTPUT: «1␤2␤1␤2␤1␤2␤»
764764

765765
Note that this is B<not> a thread-safe construct when the same clone of
766766
the same block is run by multiple threads. Also remember that methods

0 commit comments

Comments
 (0)