Skip to content

Commit

Permalink
go spec: struct comparison only compares non-blank fields
Browse files Browse the repository at this point in the history
Fixes #3031.

R=golang-dev, rsc, r, iant
CC=golang-dev
https://golang.org/cl/5676054
  • Loading branch information
griesemer committed Feb 16, 2012
1 parent 4b171e5 commit 3908467
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/go_spec.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
"Subtitle": "Version of February 14, 2012"
"Subtitle": "Version of February 16, 2012"
}-->

<!--
Expand Down Expand Up @@ -3058,8 +3058,9 @@ <h3 id="Comparison_operators">Comparison operators</h3>
</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>
Expand Down

0 comments on commit 3908467

Please sign in to comment.