diff options
| author | Robert Griesemer <gri@google.com> | 2026-03-31 15:58:57 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@google.com> | 2026-04-01 16:39:18 -0700 |
| commit | 515b8bf22e7ebcd56c1d4c022aa9186ed5d1ecdc (patch) | |
| tree | 364cf392596b57a8b2891b9a998455aba13f97e3 | |
| parent | 238d7bddeba8436ff6eea8f9216978afb7d6e7cc (diff) | |
| download | go-515b8bf22e7ebcd56c1d4c022aa9186ed5d1ecdc.tar.xz | |
spec: in range-over-func, the yield function cannot be variadic
Be explicit about it.
For #78483.
For #78314.
Change-Id: I9dc65d72ec7840a73c21869a8ca26dfeed17ad61
Reviewed-on: https://go-review.googlesource.com/c/go/+/761701
Reviewed-by: Jakub Ciolek <jakub@ciolek.dev>
TryBot-Bypass: Robert Griesemer <gri@google.com>
Auto-Submit: Robert Griesemer <gri@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
| -rw-r--r-- | doc/go_spec.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index c7b929c2fa..2238cb39fd 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ <!--{ "Title": "The Go Programming Language Specification", - "Subtitle": "Language version go1.27 (March 20, 2026)", + "Subtitle": "Language version go1.27 (April 1, 2026)", "Path": "/ref/spec" }--> @@ -6738,9 +6738,9 @@ string s string type index i int map m map[K]V key k K m[k] V channel c chan E, <-chan E element e E integer value n integer type, or untyped int value i see below -function, 0 values f func(func() bool) -function, 1 value f func(func(V) bool) value v V -function, 2 values f func(func(K, V) bool) key k K v V +function, 0 values f func(yield func() bool) +function, 1 value f func(yield func(V) bool) value v V yield cannot be variadic +function, 2 values f func(yield func(K, V) bool) key k K v V yield cannot be variadic </pre> <ol> |
