]> Cypherpunks repositories - gostls13.git/commitdiff
go spec: struct comparison only compares non-blank fields
authorRobert Griesemer <gri@golang.org>
Thu, 16 Feb 2012 22:13:17 +0000 (14:13 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 16 Feb 2012 22:13:17 +0000 (14:13 -0800)
Fixes #3031.

R=golang-dev, rsc, r, iant
CC=golang-dev
https://golang.org/cl/5676054

doc/go_spec.html

index 7d4862f50db490a4e68692e9a144c6c793040038..85394b20e9be403f18ef0bc828441b7359bf0d62 100644 (file)
@@ -1,6 +1,6 @@
 <!--{
        "Title": "The Go Programming Language Specification",
-       "Subtitle": "Version of February 14, 2012"
+       "Subtitle": "Version of February 16, 2012"
 }-->
 
 <!--
@@ -3058,8 +3058,9 @@ These terms and the result of the comparisons are defined as follows:
        </li>
 
        <li>
-       Struct values are comparable if all the fields are comparable.
-       Two struct values are equal if their corresponding fields are equal.
+       Struct values are comparable if all their fields are comparable.
+       Two struct values are equal if their corresponding
+       non-<a href="#Blank_identifier">blank</a> fields are equal.
        </li>
        
        <li>