]> Cypherpunks repositories - gostls13.git/commit
doc: improve clarity of map index examples
authorYazen2017 <yazen.shunnar@gmail.com>
Sat, 17 Feb 2018 22:24:21 +0000 (17:24 -0500)
committerRobert Griesemer <gri@golang.org>
Mon, 19 Feb 2018 05:48:39 +0000 (05:48 +0000)
commita4e950ec9ed4b862245451a5d167138c73d8c2e9
tree13dcb2c7e16e62c1128294a109d8ac527545b1d6
parentf356e83e2e1693b28cd5f130e41de1c6094b4bc1
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>
doc/go_spec.html