From 43b91e7abd1c3b84c919c97bca30480d2610f9ec Mon Sep 17 00:00:00 2001 From: Bob Glickstein Date: Thu, 6 Nov 2025 05:18:46 +0000 Subject: [PATCH] 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: 7bf5d0774749111cd13e40700b31a5a83c288db9 GitHub-Pull-Request: golang/go#76195 Reviewed-on: https://go-review.googlesource.com/c/go/+/718321 Reviewed-by: Dmitri Shuralyov Reviewed-by: Alan Donovan Auto-Submit: Alan Donovan LUCI-TryBot-Result: Go LUCI --- src/iter/iter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iter/iter.go b/src/iter/iter.go index 3d0caebf1ed..f119eae9951 100644 --- a/src/iter/iter.go +++ b/src/iter/iter.go @@ -188,7 +188,7 @@ For example, a tree implementation might provide: // It is only valid during the yield call it is passed to. 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 // Delete deletes the value at this point in the iteration.