summaryrefslogtreecommitdiff
path: root/test/sieve.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/sieve.go')
-rw-r--r--test/sieve.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sieve.go b/test/sieve.go
index 998c4be66..366d5b94c 100644
--- a/test/sieve.go
+++ b/test/sieve.go
@@ -17,7 +17,7 @@ func Generate(ch *chan<- int) {
// removing those divisible by 'prime'.
func Filter(in *<-chan int, out *chan<- int, prime int) {
for {
- i := <-in // Receive value of new variable 'i' from 'in'.
+ i := <-in; // Receive value of new variable 'i' from 'in'.
if i % prime != 0 {
out <- i // Send 'i' to channel 'out'.
}