Skip to content

Commit

Permalink
spec: uniformly format empty interfaces as "interface{}"
Browse files Browse the repository at this point in the history
Fixes #36526.

Change-Id: Ic51a287579f139422cc1a7b2fb82d6732114b031
Reviewed-on: https://go-review.googlesource.com/c/go/+/214597
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
griesemer committed Jan 13, 2020
1 parent 5c44cc4 commit 9ead772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of Dec 13, 2019",
"Subtitle": "Version of Jan 13, 2020",
"Path": "/ref/spec"
}-->

Expand Down Expand Up @@ -5279,7 +5279,7 @@ <h4 id="For_range">For statements with <code>range</code> clause</h4>
}

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)
Expand Down

0 comments on commit 9ead772

Please sign in to comment.