From f9557e066bc4eee0c9dae3fc144d377cb91b3b23 Mon Sep 17 00:00:00 2001 From: Gregory Ganley Date: Sat, 20 Feb 2021 16:12:27 -0500 Subject: [PATCH] Fix formatting of generator.md --- concurrency/generator.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/concurrency/generator.md b/concurrency/generator.md index e9821b6..beefac5 100644 --- a/concurrency/generator.md +++ b/concurrency/generator.md @@ -6,13 +6,13 @@ ```go func Count(start int, end int) chan int { - ch := make(chan int) + ch := make(chan int) - go func(ch chan int) { - for i := start; i <= end ; i++ { - // Blocks on the operation - ch <- i - } + go func(ch chan int) { + for i := start; i <= end; i++ { + // Blocks on the operation + ch <- i + } close(ch) }(ch)