mirror of
https://github.com/golang/go
synced 2024-11-11 22:10:22 -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:
parent
4b171e5040
commit
3908467b1f
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user