]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go_spec: cap doesn't apply to maps
authorShenghou Ma <minux.ma@gmail.com>
Mon, 21 Jan 2013 19:18:20 +0000 (03:18 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 21 Jan 2013 19:18:20 +0000 (03:18 +0800)
Fixes #4682.

R=golang-dev, adg, dave
CC=golang-dev
https://golang.org/cl/7094062

doc/go_spec.html

index 239e69c987cd18e45817d387a1bcbc0710c86210..c93bb6c65d46d2cb7a52f1a64406630aa7328302 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of January 18, 2013",
+       "Subtitle": "Version of January 21, 2013",
        "Path": "/ref/spec"
 }-->
 
@@ -4922,7 +4922,8 @@ At any time the following relationship holds:
 </pre>
 
 <p>
-The length and capacity of a <code>nil</code> slice, map, or channel are 0.
+The length of a <code>nil</code> slice, map or channel is 0.
+The capacity of a <code>nil</code> slice and channel is 0.
 </p>
 
 <p>