]> Cypherpunks repositories - gostls13.git/commitdiff
Complex values may only be compared for equality or inequality.
authorIan Lance Taylor <iant@golang.org>
Mon, 8 Mar 2010 22:05:46 +0000 (14:05 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 8 Mar 2010 22:05:46 +0000 (14:05 -0800)
R=gri, r
CC=golang-dev
https://golang.org/cl/294042

doc/go_spec.html

index 0dc1a836ec4db1234f93af7e05eaaab7cf2cad99..d0b9e2fad47a796f285a6fd2fded6998d3a8f577 100644 (file)
@@ -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>