Skip to content

Commit 70077e9

Browse files
authored
Make wrong example markings more obvious
1 parent 5c75f77 commit 70077e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/Type/atomicint.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ must be used in conjunction with the atomic operations.
3131
await start { for ^20000 { $total⚛++ } } xx 4;
3232
say $total;
3333
34+
# *** WRONG *** due to lack of use of the atomicint type.
3435
# Either works correctly or dies, depending on platform.
3536
my int $total = 0;
3637
await start { for ^20000 { $total⚛++ } } xx 4;
3738
say $total;
3839
39-
# Wrong due to lack of use of the atomic increment operator.
40+
# *** WRONG *** due to lack of use of the atomic increment operator.
4041
my atomicint $total = 0;
4142
await start { for ^20000 { $total++ } } xx 4;
4243
say $total;

0 commit comments

Comments
 (0)