aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-04-22 16:26:51 -0700
committerRobert Griesemer <gri@golang.org>2011-04-22 16:26:51 -0700
commit1bdb1803b9ec0b3434c7038e4c6949d0d4d96c5d (patch)
treec1df07ac4f7eb46f854571b2dd1c3c32a5f1ce6d
parentd911b872ceae5c6d00e519b74db3c6eede5e3b87 (diff)
downloadgo-1bdb1803b9ec0b3434c7038e4c6949d0d4d96c5d.tar.gz
go-1bdb1803b9ec0b3434c7038e4c6949d0d4d96c5d.zip
go spec: for map types, mention indexing operations
(like we do for arrays and slices). Suggested by mathieu.lonjaret@gmail.com . R=r, rsc, iant CC=golang-dev https://golang.org/cl/4442074
-rw-r--r--doc/go_spec.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 38a9877bf2..886f89d126 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,5 +1,5 @@
<!-- title The Go Programming Language Specification -->
-<!-- subtitle Version of Apr 19, 2011 -->
+<!-- subtitle Version of Apr 22, 2011 -->
<!--
TODO
@@ -1155,8 +1155,9 @@ map [string] interface {}
The number of map elements is called its length.
For a map <code>m</code>, it can be discovered using the
built-in function <a href="#Length_and_capacity"><code>len(m)</code></a>
-and may change during execution. Values may be added and removed
-during execution using special forms of <a href="#Assignments">assignment</a>.
+and may change during execution. Elements may be added and removed
+during execution using special forms of <a href="#Assignments">assignment</a>;
+and they may be accessed with <a href="#Indexes">index</a> expressions.
</p>
<p>
A new, empty map value is made using the built-in