aboutsummaryrefslogtreecommitdiff
path: root/doc/go_spec.html
diff options
context:
space:
mode:
authorYazen2017 <yazen.shunnar@gmail.com>2018-02-17 17:24:21 -0500
committerRobert Griesemer <gri@golang.org>2018-02-19 05:48:39 +0000
commita4e950ec9ed4b862245451a5d167138c73d8c2e9 (patch)
tree13dcb2c7e16e62c1128294a109d8ac527545b1d6 /doc/go_spec.html
parentf356e83e2e1693b28cd5f130e41de1c6094b4bc1 (diff)
downloadgo-a4e950ec9ed4b862245451a5d167138c73d8c2e9.tar.gz
go-a4e950ec9ed4b862245451a5d167138c73d8c2e9.zip
doc: improve clarity of map index examples
The fourth example for map indexing states you have a map of type [K]V and attempts to read in a variable of type T. Further, the example is meant to showcase the boolean return variable saying whether the map contained a key, but overrides to type T. This will not compile. Changed last updated date to February 18 Fixes: #23895 Change-Id: I63c52adbcd989afd4855e329e6c727f4c01f7881 Reviewed-on: https://go-review.googlesource.com/94906 Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r--doc/go_spec.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 9a166ccdf4..dbd2307e29 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of February 1, 2018",
+ "Subtitle": "Version of February 18, 2018",
"Path": "/ref/spec"
}-->
@@ -3051,7 +3051,6 @@ used in an <a href="#Assignments">assignment</a> or initialization of the specia
v, ok = a[x]
v, ok := a[x]
var v, ok = a[x]
-var v, ok T = a[x]
</pre>
<p>