mirror of
https://github.com/golang/go.git
synced 2025-10-22 12:33:19 +00:00
spec: remove "untyped bool" oxymorons
The proper term is "untyped boolean". Change-Id: Id871164190a03c64a8a8987b1ad5d8653a21d96e Reviewed-on: https://go-review.googlesource.com/16135 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
2bf91afd2b
commit
ff85f86877
1 changed files with 2 additions and 2 deletions
|
@ -3638,12 +3638,12 @@ is also allowed and follows from the general rules above.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
const c = 3 < 4 // c is the untyped bool constant true
|
const c = 3 < 4 // c is the untyped boolean constant true
|
||||||
|
|
||||||
type MyBool bool
|
type MyBool bool
|
||||||
var x, y int
|
var x, y int
|
||||||
var (
|
var (
|
||||||
// The result of a comparison is an untyped bool.
|
// The result of a comparison is an untyped boolean.
|
||||||
// The usual assignment rules apply.
|
// The usual assignment rules apply.
|
||||||
b3 = x == y // b3 has type bool
|
b3 = x == y // b3 has type bool
|
||||||
b4 bool = x == y // b4 has type bool
|
b4 bool = x == y // b4 has type bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue