]> Cypherpunks repositories - gostls13.git/commitdiff
go/spec: Update language on map types.
authorRobert Griesemer <gri@golang.org>
Mon, 30 Jan 2012 23:31:33 +0000 (15:31 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 30 Jan 2012 23:31:33 +0000 (15:31 -0800)
Fixes #2803.

R=r
CC=golang-dev
https://golang.org/cl/5601053

doc/go_spec.html

index d7b0d7632667c63733ef67f177ce93f81fd5209e..39ffdb71d47e99d7185cb20755a1f00b72f4e40d 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of January 21, 2012"
+       "Subtitle": "Version of January 30, 2012"
 }-->
 
 <!--
@@ -1150,7 +1150,8 @@ KeyType     = Type .
 <p>
 The comparison operators <code>==</code> and <code>!=</code>
 (ยง<a href="#Comparison_operators">Comparison operators</a>) must be fully defined
-for operands of the key type; thus the key type must not be a struct, array or slice.
+for operands of the key type; thus the key type must not be a function, map, or
+slice.
 If the key type is an interface type, these
 comparison operators must be defined for the dynamic key values;
 failure will cause a <a href="#Run_time_panics">run-time panic</a>.