From: Robert Griesemer Date: Wed, 12 Jun 2024 21:28:30 +0000 (-0700) Subject: spec: allow range-over-func to omit iteration variables X-Git-Tag: go1.23rc1~31 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8219848c944c7603df349775de66093af64f0fd4;p=gostls13.git 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 Auto-Submit: Robert Griesemer TryBot-Bypass: Robert Griesemer Reviewed-by: Ian Lance Taylor --- diff --git a/doc/go_spec.html b/doc/go_spec.html index d1ca6722e1..c1d3360ef6 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -6733,8 +6733,6 @@ to generate iteration values this way for each yield call until f returns. If the loop body terminates (such as by a break statement), yield returns false and must not be called again. -The number of iteration variables must match the number and order of arguments -to yield.