[go] spec: move rule for type parameters up in section of range clause

0 views
Skip to first unread message

Robert Griesemer (Gerrit)

unread,
Apr 9, 2026, 5:33:26 PM (10 hours ago) Apr 9
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Go LUCI, Alan Donovan, golang-co...@googlegroups.com

Robert Griesemer submitted the change

Change information

Commit message:
spec: move rule for type parameters up in section of range clause

Make the rule for range expressions of type parameter type more
visible by moving it up (it was easily missed before as it was
at the end of the example section).

Add a corresponding example to the examples.

Per suggestion from @adonovan.
Change-Id: I8527e69ecc7d0110554ba00f4c30829f7d260d41
Auto-Submit: Robert Griesemer <g...@google.com>
Reviewed-by: Robert Griesemer <g...@google.com>
TryBot-Bypass: Robert Griesemer <g...@google.com>
Reviewed-by: Alan Donovan <adon...@google.com>
Files:
  • M doc/go_spec.html
Change size: S
Delta: 1 file changed, 16 insertions(+), 7 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by Robert Griesemer, +2 by Alan Donovan
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result-1 by Go LUCI, TryBot-Bypass+1 by Robert Griesemer
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I8527e69ecc7d0110554ba00f4c30829f7d260d41
Gerrit-Change-Number: 764921
Gerrit-PatchSet: 2
Gerrit-Owner: Robert Griesemer <g...@google.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Robert Griesemer <g...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages