Commit 1bdb1803 authored by Robert Griesemer's avatar Robert Griesemer

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
parent d911b872
<!-- 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment