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:
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.
|
[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
|
||||||
|
Loading…
Reference in New Issue
Block a user