]> Cypherpunks repositories - gostls13.git/commitdiff
spec: remove "untyped bool" oxymorons
authorMatthew Dempsky <mdempsky@google.com>
Tue, 20 Oct 2015 22:05:22 +0000 (15:05 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 20 Oct 2015 22:08:17 +0000 (22:08 +0000)
The proper term is "untyped boolean".

Change-Id: Id871164190a03c64a8a8987b1ad5d8653a21d96e
Reviewed-on: https://go-review.googlesource.com/16135
Reviewed-by: Robert Griesemer <gri@golang.org>
doc/go_spec.html

index 873c127bdd46271c60be37c7775c238eaa51088a..ac5ae35745bb9efae6c1a53b8177d5efb2f96e29 100644 (file)
@@ -3638,12 +3638,12 @@ is also allowed and follows from the general rules above.
 </p>
 
 <pre>
-const c = 3 &lt; 4            // c is the untyped bool constant true
+const c = 3 &lt; 4            // c is the untyped boolean constant true
 
 type MyBool bool
 var x, y int
 var (
-       // The result of a comparison is an untyped bool.
+       // The result of a comparison is an untyped boolean.
        // The usual assignment rules apply.
        b3        = x == y // b3 has type bool
        b4 bool   = x == y // b4 has type bool