mirror of
https://github.com/golang/go
synced 2024-11-21 18:24:46 -07:00
Complex values may only be compared for equality or inequality.
R=gri, r CC=golang-dev https://golang.org/cl/294042
This commit is contained in:
parent
5cf707b499
commit
18187e7d49
@ -1369,9 +1369,9 @@ Any value may be assigned to the <a href="#Blank_identifier">blank identifier</a
|
||||
<p>
|
||||
Except as noted, values of any type may be compared to other values of
|
||||
<a href="#Type_compatibility">compatible static type</a>.
|
||||
Values of numeric and string type may be compared using the
|
||||
Values of integer, floating-point, and string type may be compared using the
|
||||
full range of <a href="#Comparison_operators;">comparison operators</a>;
|
||||
booleans may be compared only for equality or inequality.
|
||||
booleans and complex values may be compared only for equality or inequality.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user