]> Cypherpunks repositories - gostls13.git/commitdiff
spec: remove redundant, outdated definition of default literal types
authorRuss Cox <rsc@golang.org>
Fri, 9 Dec 2011 05:12:49 +0000 (00:12 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 9 Dec 2011 05:12:49 +0000 (00:12 -0500)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5480047

doc/go_spec.html

index c7a1521c74a4698c0ca3e650bb5fd90db0b4aac6..f290b6746d2010e6b4b9bc41355ad0bdadbbaddf 100644 (file)
@@ -1778,23 +1778,7 @@ of the expression list.
 <p>
 If the type is absent and the corresponding expression evaluates to an
 untyped <a href="#Constants">constant</a>, the type of the declared variable
-is <code>bool</code>, <code>int</code>, <code>float64</code>,
-<code>complex128</code>, or <code>string</code> respectively, depending on
-whether the value is a boolean, integer, floating-point, complex, or string
-constant:
-</p>
-
-<pre>
-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
-</pre>
+is as described in ยง<a href="#Assignments">Assignments</a>.
 
 <h3 id="Short_variable_declarations">Short variable declarations</h3>