1
0
mirror of https://github.com/golang/go synced 2024-11-21 16:04:45 -07:00

go spec: struct comparison only compares non-blank fields

Fixes #3031.

R=golang-dev, rsc, r, iant
CC=golang-dev
https://golang.org/cl/5676054
This commit is contained in:
Robert Griesemer 2012-02-16 14:13:17 -08:00
parent 4b171e5040
commit 3908467b1f

View 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>