Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Comment readability fix
  • Loading branch information
lizmat committed May 11, 2014
1 parent b2d8100 commit 56b0c83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S17-channel/winner.t
Expand Up @@ -37,9 +37,9 @@ plan 3;
loop {
winner * {
more @c { @a.push: $:v }
# When using multiple channels, and they don't close simultaneously, there is a chance
# that the "done" section of a closed channel is executed more than once. Hence the
# the use of a hash, rather than just a simple counter.
# When using multiple channels, and they don't close simultaneously, there is
# a chance that the "done" section of a closed channel is executed more than
# once. Hence the the use of a hash, rather than just a simple counter.
done @c { %done{$:k}++; last if +%done == 2 }
}
}
Expand Down

0 comments on commit 56b0c83

Please sign in to comment.