Skip to content

Commit f7e3262

Browse files
dliontmrts
authored andcommitted
concurrency/generator: remove undefined result
1 parent 82fc76d commit f7e3262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concurrency/generator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func Count(start int, end int) chan int {
1111
go func(ch chan int) {
1212
for i := start; i < end ; i++ {
1313
// Blocks on the operation
14-
ch <- result
14+
ch <- i
1515
}
1616

1717
close(ch)

0 commit comments

Comments
 (0)