From: Russ Cox Date: Fri, 9 Dec 2011 05:12:49 +0000 (-0500) Subject: spec: remove redundant, outdated definition of default literal types X-Git-Tag: weekly.2011-12-14~121 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6a47bb4974ae6908ba34e16c6a0fd6b6e2d15909;p=gostls13.git spec: remove redundant, outdated definition of default literal types R=golang-dev, r CC=golang-dev https://golang.org/cl/5480047 --- diff --git a/doc/go_spec.html b/doc/go_spec.html index c7a1521c74..f290b6746d 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1778,23 +1778,7 @@ of the expression list.

If the type is absent and the corresponding expression evaluates to an untyped constant, the type of the declared variable -is bool, int, float64, -complex128, or string respectively, depending on -whether the value is a boolean, integer, floating-point, complex, or string -constant: -

- -
-var b  = true    // t  has type bool
-var r  = 'a'     // r  has type int
-var i  = 0       // i  has type int
-var f  = 3.0     // f  has type float64
-var c0 = 0i      // c0 has type complex128
-var c1 = 1 + 0i  // c1 has type complex128
-var c2 = 1 + 1i  // c2 has type complex128
-var s1 = "OMDB"  // s1 has type string
-var s2 = `foo`   // s2 has type string
-
+is as described in §Assignments.

Short variable declarations