]> Cypherpunks repositories - gostls13.git/commitdiff
spec: adjust complex constant example
authorRobert Hencke <robert.hencke@gmail.com>
Sat, 10 Dec 2011 18:04:33 +0000 (10:04 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 10 Dec 2011 18:04:33 +0000 (10:04 -0800)
Fixes https://golang.org/cl/5444053/#msg41

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5478058

doc/go_spec.html

index 85ee436a6bb2d252b25afe79779cfb8b37c1cfdb..725513e32fe3a81940c89a43059ce14ef3b9bcd1 100644 (file)
@@ -1,5 +1,5 @@
 <!-- title The Go Programming Language Specification -->
-<!-- subtitle Version of December 8, 2011 -->
+<!-- subtitle Version of December 10, 2011 -->
 
 <!--
 TODO
@@ -3432,7 +3432,7 @@ const j = true             // j == true  (untyped boolean constant)
 const k = 'w' + 1          // k == 'x'   (untyped character constant)
 const l = "hi"             // l == "hi"  (untyped string constant)
 const m = string(k)        // m == "x"   (type string)
-const Σ = 1 - 0.707        //            (untyped complex constant)
+const Σ = 1 - 0.707i       //            (untyped complex constant)
 const Δ = Σ + 2.0e-4       //            (untyped complex constant)
 const Φ = iota*1i - 1/1i   //            (untyped complex constant)
 </pre>