From 399a51c7fea4ca40c347d7d28149c5f866f0183c Mon Sep 17 00:00:00 2001 From: Niranjan Godbole Date: Wed, 8 Mar 2017 20:13:35 +0530 Subject: [PATCH] concurrency/generator: use inclusive range in iteration Fixes #23 --- 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 }