Go version

unreleased (current master)

Output of go env in your module/workspace:

N/A

What did you do?

Read https://cs.opensource.google/go/go/+/master:src/iter/iter.go;l=122

What did you see happen?

    func Pairs[V any](seq iter.Seq[V]) iter.Seq2[V, V] {
        return func(yield func(V, V) bool) bool {
            // a couple return true/false inside

What did you expect to see?

    func Pairs[V any](seq iter.Seq[V]) iter.Seq2[V, V] {
        return func(yield func(V, V) bool) {
            // no return inside

Comment From: jimmyfrasche

Also https://cs.opensource.google/go/go/+/master:src/iter/iter.go;l=34 has _, v := range seq but seq is a Seq[V]

Comment From: gopherbot

Change https://go.dev/cl/593555 mentions this issue: iter: minor doc comment updates