From: Robert Griesemer Date: Wed, 19 Jan 2011 18:33:41 +0000 (-0800) Subject: go spec: adjust language for constant typing X-Git-Tag: weekly.2011-01-19~30 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dfc5bb5ff626b4d2baa81db0d91cc220cb4dd927;p=gostls13.git go spec: adjust language for constant typing Fixes #1421. R=r, rsc, iant, ken2 CC=golang-dev https://golang.org/cl/4039042 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index 498f316520..71ef526f2e 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -561,7 +561,7 @@ or conversion, or implicitly when used in a assignment or as an operand in an expression. It is an error if the constant value -cannot be accurately represented as a value of the respective type. +cannot be represented as a value of the respective type. For instance, 3.0 can be given any integer or any floating-point type, while 2147483648.0 (equal to 1<<31) can be given the types float32, float64, or uint32 but