From: Yazen2017 Date: Sat, 17 Feb 2018 22:24:21 +0000 (-0500) Subject: doc: improve clarity of map index examples X-Git-Tag: go1.11beta1~1559 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a4e950ec9ed4b862245451a5d167138c73d8c2e9;p=gostls13.git 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 --- 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 @@ @@ -3051,7 +3051,6 @@ used in an assignment or initialization of the specia v, ok = a[x] v, ok := a[x] var v, ok = a[x] -var v, ok T = a[x]