aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/pkgpattern/pkgpattern.go
diff options
context:
space:
mode:
authorVladimir Varankin <vladimir@varank.in>2025-09-15 17:04:04 +0000
committerGopher Robot <gobot@golang.org>2025-09-16 07:40:30 -0700
commit61dc7fe30d16b920888123390c6965614e491a66 (patch)
tree225721366b493781ae656c8c2f24912e2dbbad0d /src/cmd/internal/pkgpattern/pkgpattern.go
parentca0e03560df7279bc307da08db7237beb32b0d99 (diff)
downloadgo-61dc7fe30d16b920888123390c6965614e491a66.tar.xz
iter: document that calling yield after terminated range loop causes runtime panic
The existing documentation isn't clear about the behaviour of when the iterator function ignores the value returned from the yield function. The changes here update the documentation, to explicitly explain that. Change-Id: I24a8198c3da63429358554169697fa466345b8fd GitHub-Last-Rev: 86c8a2dd89dca4e05631f5c4f7087b59b0e0664b GitHub-Pull-Request: golang/go#74561 Reviewed-on: https://go-review.googlesource.com/c/go/+/687215 Auto-Submit: Sean Liao <sean@liao.dev> Reviewed-by: Sean Liao <sean@liao.dev> Reviewed-by: Michael Knyszek <mknyszek@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Mark Freeman <markfreeman@google.com>
Diffstat (limited to 'src/cmd/internal/pkgpattern/pkgpattern.go')
0 files changed, 0 insertions, 0 deletions