]> Cypherpunks repositories - gostls13.git/commitdiff
iter: add missing type parameter in doc
authorMikhail Mazurskiy <mmazurskiy@gitlab.com>
Fri, 27 Jun 2025 10:52:57 +0000 (10:52 +0000)
committerGopher Robot <gobot@golang.org>
Mon, 30 Jun 2025 14:40:04 +0000 (07:40 -0700)
Change-Id: I3816b41227a0c8f8ece77b1e29002df433ccebdb
GitHub-Last-Rev: e9e63b4c1b93cde499b15db49c53ff1536fc765c
GitHub-Pull-Request: golang/go#74406
Reviewed-on: https://go-review.googlesource.com/c/go/+/684555
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Sean Liao <sean@liao.dev>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
src/iter/iter.go

index 4d408e5e77c65e54e71abdc4103055f6296fa3a2..3eaeb9e1fd6f1ff5b1d43d8dfd9d6a6573f33566 100644 (file)
@@ -180,7 +180,7 @@ with the extra operations and then provide an iterator over positions.
 For example, a tree implementation might provide:
 
        // Positions returns an iterator over positions in the sequence.
-       func (t *Tree[V]) Positions() iter.Seq[*Pos]
+       func (t *Tree[V]) Positions() iter.Seq[*Pos[V]]
 
        // A Pos represents a position in the sequence.
        // It is only valid during the yield call it is passed to.