Skip to content

iter: example Pairs in package doc uses wrong (outdated?) signature for iter.Seq2 #68056

@powerman

Description

@powerman

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions