From 3ba3e0109330514f304a99818c5d2913d3a8016b Mon Sep 17 00:00:00 2001 From: Niranjan Godbole Date: Tue, 7 Mar 2017 23:10:42 +0530 Subject: [PATCH] fix generator pattern range issue --- concurrency/generator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concurrency/generator.md b/concurrency/generator.md index 6d4d134..e9821b6 100644 --- a/concurrency/generator.md +++ b/concurrency/generator.md @@ -9,7 +9,7 @@ func Count(start int, end int) chan int { ch := make(chan int) go func(ch chan int) { - for i := start; i < end ; i++ { + for i := start; i <= end ; i++ { // Blocks on the operation ch <- i }