Commit 3908467b authored by Robert Griesemer's avatar Robert Griesemer

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
parent 4b171e50
<!--{
"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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment