Commit 9ead772a authored by Robert Griesemer's avatar Robert Griesemer

spec: uniformly format empty interfaces as "interface{}"

Fixes #36526.

Change-Id: Ic51a287579f139422cc1a7b2fb82d6732114b031
Reviewed-on: https://go-review.googlesource.com/c/go/+/214597Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 5c44cc47
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of Dec 13, 2019",
"Subtitle": "Version of Jan 13, 2020",
"Path": "/ref/spec"
}-->
......@@ -5279,7 +5279,7 @@ for i, s := range a {
}
var key string
var val interface {} // element type of m is assignable to val
var val interface{} // element type of m is assignable to val
m := map[string]int{"mon":0, "tue":1, "wed":2, "thu":3, "fri":4, "sat":5, "sun":6}
for key, val = range m {
h(key, val)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment