]> Cypherpunks repositories - gostls13.git/commitdiff
spec: disallow general func, map comparisons
authorRuss Cox <rsc@golang.org>
Mon, 14 Nov 2011 03:57:45 +0000 (22:57 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 14 Nov 2011 03:57:45 +0000 (22:57 -0500)
R=golang-dev, gri, r, r
CC=golang-dev
https://golang.org/cl/5369090

doc/go_spec.html

index 4426ea206fbe9562d650e626a8149b0a21852aeb..e397d0aea0368419bc92aaf0a1ed5de31c44af4b 100644 (file)
@@ -1,5 +1,5 @@
 <!-- title The Go Programming Language Specification -->
-<!-- subtitle Version of November 9, 2011 -->
+<!-- subtitle Version of November 13, 2011 -->
 
 <!--
 TODO
@@ -2966,14 +2966,10 @@ and string values. The result of a comparison is defined as follows:
        or if both are <code>nil</code>.
        </li>
        <li>
-       Function values are equal if they refer to the same function
-       or if both are <code>nil</code>.
-       </li>
-       <li>
-       A slice value may only be compared to <code>nil</code>.
+       A slice, map, or function value may be compared only to <code>nil</code>.
        </li>
        <li>
-       Channel and map values are equal if they were created by the same call to <code>make</code>
+       Channel values are equal if they were created by the same call to <code>make</code>
        (ยง<a href="#Making_slices_maps_and_channels">Making slices, maps, and channels</a>)
        or if both are <code>nil</code>.
        </li>