diff options
Diffstat (limited to 'src/pkg/container/vector/stringvector.go')
| -rw-r--r-- | src/pkg/container/vector/stringvector.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/container/vector/stringvector.go b/src/pkg/container/vector/stringvector.go index 4f6d74e29a..2ead95c701 100644 --- a/src/pkg/container/vector/stringvector.go +++ b/src/pkg/container/vector/stringvector.go @@ -100,7 +100,7 @@ func (p *StringVector) Less(i, j int) bool { // Iterate over all elements; driver for range -func (p *StringVector) iterate(c chan string) { +func (p *StringVector) iterate(c chan<- string) { for i, v := range p.a { c <- v.(string) } @@ -109,7 +109,7 @@ func (p *StringVector) iterate(c chan string) { // Channel iterator for range. -func (p *StringVector) Iter() chan string { +func (p *StringVector) Iter() <-chan string { c := make(chan string); go p.iterate(c); return c; |
