]> Cypherpunks repositories - gostls13.git/commitdiff
go spec: for map types, mention indexing operations
authorRobert Griesemer <gri@golang.org>
Fri, 22 Apr 2011 23:26:51 +0000 (16:26 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 22 Apr 2011 23:26:51 +0000 (16:26 -0700)
         (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

doc/go_spec.html

index 38a9877bf275bd3387bb33e7fbf083770fcff495..886f89d126dda1c1078b9b85b0d5e2f84b223808 100644 (file)
@@ -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