iter: fix a tiny doc comment bug

Use the right name for method Pos.Value in a sample doc comment in the package overview.

Fixes #76187.

Change-Id: Id1f5b0ca4ea39493b10140bc304c57c081c805ee
GitHub-Last-Rev: 7bf5d07747
GitHub-Pull-Request: golang/go#76195
Reviewed-on: https://go-review.googlesource.com/c/go/+/718321
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Bob Glickstein 2025-11-06 05:18:46 +00:00 committed by Gopher Robot
parent 48c7fa13c6
commit 43b91e7abd

View file

@ -188,7 +188,7 @@ For example, a tree implementation might provide:
// It is only valid during the yield call it is passed to. // It is only valid during the yield call it is passed to.
type Pos[V any] struct { ... } type Pos[V any] struct { ... }
// Pos returns the value at the cursor. // Value returns the value at the cursor.
func (p *Pos[V]) Value() V func (p *Pos[V]) Value() V
// Delete deletes the value at this point in the iteration. // Delete deletes the value at this point in the iteration.