mirror of
https://github.com/tmrts/go-patterns.git
synced 2024-11-22 04:56:09 +03:00
Fix README code indentation
This commit is contained in:
parent
f978e42036
commit
ca153acaa8
@ -2,7 +2,7 @@
|
||||
|
||||
[Generators](https://en.wikipedia.org/wiki/Generator_(computer_programming)) yields a sequence of values one at a time.
|
||||
|
||||
## Implementation
|
||||
## Implementation
|
||||
|
||||
```go
|
||||
func Count(start int, end int) chan int {
|
||||
@ -14,7 +14,7 @@ func Count(start int, end int) chan int {
|
||||
ch <- i
|
||||
}
|
||||
|
||||
close(ch)
|
||||
close(ch)
|
||||
}(ch)
|
||||
|
||||
return ch
|
||||
|
Loading…
Reference in New Issue
Block a user