1
0
mirror of https://github.com/tmrts/go-patterns.git synced 2024-11-25 14:36:06 +03:00

Fix README code indentation

This commit is contained in:
Kleber Correia 2018-12-11 17:50:10 +00:00
parent f978e42036
commit ca153acaa8

View File

@ -2,7 +2,7 @@
[Generators](https://en.wikipedia.org/wiki/Generator_(computer_programming)) yields a sequence of values one at a time. [Generators](https://en.wikipedia.org/wiki/Generator_(computer_programming)) yields a sequence of values one at a time.
## Implementation ## Implementation
```go ```go
func Count(start int, end int) chan int { func Count(start int, end int) chan int {
@ -14,7 +14,7 @@ func Count(start int, end int) chan int {
ch <- i ch <- i
} }
close(ch) close(ch)
}(ch) }(ch)
return ch return ch