mirror of
https://github.com/golang/go
synced 2024-11-24 21:10:04 -07:00
parent
593ea31361
commit
330139e3f2
@ -4402,7 +4402,7 @@ func generate(ch chan<- int) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy the values from channel 'in' to channel 'out',
|
// Copy the values from channel 'src' to channel 'dst',
|
||||||
// removing those divisible by 'prime'.
|
// removing those divisible by 'prime'.
|
||||||
func filter(src <-chan int, dst chan<- int, prime int) {
|
func filter(src <-chan int, dst chan<- int, prime int) {
|
||||||
for i := range src { // Loop over values received from 'src'.
|
for i := range src { // Loop over values received from 'src'.
|
||||||
|
Loading…
Reference in New Issue
Block a user