From: Robert Griesemer Date: Thu, 11 Jul 2013 21:41:46 +0000 (-0700) Subject: spec: move decl in example closer to use X-Git-Tag: go1.2rc2~1079 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=63f54ae3c25735aa8558f0f2d281032b46f45a53;p=gostls13.git spec: move decl in example closer to use Fixes #5862. R=r CC=golang-dev https://golang.org/cl/11168043 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 4f2995ab20..14903f0b3c 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ @@ -4664,7 +4664,6 @@ for i, _ := range testdata.a { } var a [10]string -m := map[string]int{"mon":0, "tue":1, "wed":2, "thu":3, "fri":4, "sat":5, "sun":6} for i, s := range a { // type of i is int // type of s is string @@ -4674,6 +4673,7 @@ for i, s := range a { var key string var val interface {} // value 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) }