mirror of
https://github.com/golang/go.git
synced 2025-10-19 19:13:18 +00:00
iter: add missing type parameter in doc
This commit is contained in:
parent
0f8ab2db17
commit
e9e63b4c1b
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue