Skip to content

Commit 43b91e7

Browse files
bobggopherbot
authored andcommitted
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: 7bf5d07 GitHub-Pull-Request: #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>
1 parent 48c7fa1 commit 43b91e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/iter/iter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ For example, a tree implementation might provide:
188188
// It is only valid during the yield call it is passed to.
189189
type Pos[V any] struct { ... }
190190
191-
// Pos returns the value at the cursor.
191+
// Value returns the value at the cursor.
192192
func (p *Pos[V]) Value() V
193193
194194
// Delete deletes the value at this point in the iteration.

0 commit comments

Comments
 (0)