Skip to content

Commit 8219848

Browse files
griesemergopherbot
authored andcommitted
spec: allow range-over-func to omit iteration variables
For #65236. Change-Id: I5a11811cc52467ea4446db29c3f86b119f9b2409 Reviewed-on: https://go-review.googlesource.com/c/go/+/592295 Reviewed-by: Robert Griesemer <[email protected]> Auto-Submit: Robert Griesemer <[email protected]> TryBot-Bypass: Robert Griesemer <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent e15cc7a commit 8219848

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/go_spec.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--{
22
"Title": "The Go Programming Language Specification",
3-
"Subtitle": "Language version go1.23 (June 4, 2024)",
3+
"Subtitle": "Language version go1.23 (June 12, 2024)",
44
"Path": "/ref/spec"
55
}-->
66

@@ -6733,8 +6733,6 @@ <h4 id="For_range">For statements with <code>range</code> clause</h4>
67336733
<code>f</code> returns.
67346734
If the loop body terminates (such as by a <code>break</code> statement),
67356735
<code>yield</code> returns false and must not be called again.
6736-
The number of iteration variables must match the number and order of arguments
6737-
to <code>yield</code>.
67386736
</li>
67396737
</ol>
67406738

0 commit comments

Comments
 (0)