1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-24 05:56:08 +03:00

concurrency/generator: remove undefined result

This commit is contained in:
Domenico Luciani 2016-10-03 15:55:45 +02:00 committed by Tamer Tas
parent 82fc76d6ab
commit f7e32625ec

View File

@ -11,7 +11,7 @@ func Count(start int, end int) chan int {
go func(ch chan int) {
for i := start; i < end ; i++ {
// Blocks on the operation
ch <- result
ch <- i
}
close(ch)