iter: add missing type parameter in doc

This commit is contained in:
Mikhail Mazurskiy 2025-06-27 20:47:01 +10:00
parent 0f8ab2db17
commit e9e63b4c1b
No known key found for this signature in database
GPG key ID: 36AD574291509DB7

View 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.