From 63f54ae3c25735aa8558f0f2d281032b46f45a53 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Thu, 11 Jul 2013 14:41:46 -0700 Subject: [PATCH] spec: move decl in example closer to use Fixes #5862. R=r CC=golang-dev https://golang.org/cl/11168043 --- doc/go_spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } -- 2.48.1