mirror of
https://github.com/golang/go
synced 2024-11-24 20:20:03 -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'.
|
||||
func filter(src <-chan int, dst chan<- int, prime int) {
|
||||
for i := range src { // Loop over values received from 'src'.
|
||||
|
Loading…
Reference in New Issue
Block a user