diff options
author | Robert Griesemer <gri@golang.org> | 2011-01-19 10:33:41 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2011-01-19 10:33:41 -0800 |
commit | dfc5bb5ff626b4d2baa81db0d91cc220cb4dd927 (patch) | |
tree | 3e6baadb23254d748db58562146a63795cf66563 | |
parent | 36d658d7d638615b640ef55213fdefa86432d727 (diff) | |
download | go-dfc5bb5ff626b4d2baa81db0d91cc220cb4dd927.tar.gz go-dfc5bb5ff626b4d2baa81db0d91cc220cb4dd927.zip |
go spec: adjust language for constant typing
Fixes #1421.
R=r, rsc, iant, ken2
CC=golang-dev
https://golang.org/cl/4039042
-rw-r--r-- | doc/go_spec.html | 2 |
1 files changed, 1 insertions, 1 deletions
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 <a href="#Conversions">conversion</a>, or implicitly when used in a <a href="#Assignments">assignment</a> or as an operand in an <a href="#Expressions">expression</a>. 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, <code>3.0</code> can be given any integer or any floating-point type, while <code>2147483648.0</code> (equal to <code>1<<31</code>) can be given the types <code>float32</code>, <code>float64</code>, or <code>uint32</code> but |