From dfc5bb5ff626b4d2baa81db0d91cc220cb4dd927 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 19 Jan 2011 10:33:41 -0800 Subject: [PATCH] go spec: adjust language for constant typing Fixes #1421. R=r, rsc, iant, ken2 CC=golang-dev https://golang.org/cl/4039042 --- doc/go_spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 498f3165201..71ef526f2ec 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