iter: add missing type parameter in doc
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>
This commit is contained in:
committed by
Gopher Robot
parent
acb914f2c2
commit
9d1cd0b881
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user