From: Robert Griesemer Date: Thu, 18 Apr 2013 21:36:08 +0000 (-0700) Subject: builtin: document true and false. X-Git-Tag: go1.1rc2~79 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8457afbe0050f4223e105cb4d1ad4938b8f12db7;p=gostls13.git builtin: document true and false. Fixes #5315. R=golang-dev, r CC=golang-dev https://golang.org/cl/8841048 --- diff --git a/src/pkg/builtin/builtin.go b/src/pkg/builtin/builtin.go index d3c1a5c55a..128a1b5f8f 100644 --- a/src/pkg/builtin/builtin.go +++ b/src/pkg/builtin/builtin.go @@ -13,6 +13,12 @@ package builtin // bool is the set of boolean values, true and false. type bool bool +// true and false are the two untyped boolean values. +const ( + true = 0 == 0 // Untyped bool. + false = 0 != 0 // Untyped bool. +) + // uint8 is the set of all unsigned 8-bit integers. // Range: 0 through 255. type uint8 uint8