From 6a47bb4974ae6908ba34e16c6a0fd6b6e2d15909 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 9 Dec 2011 00:12:49 -0500 Subject: [PATCH] spec: remove redundant, outdated definition of default literal types R=golang-dev, r CC=golang-dev https://golang.org/cl/5480047 --- doc/go_spec.html | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index c7a1521c74a..f290b6746d2 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