]> Cypherpunks repositories - gostls13.git/commitdiff
spec: example shows wrong value for complex constant
authorMihai Borobocea <MihaiBorobocea@gmail.com>
Mon, 30 Dec 2013 21:29:56 +0000 (13:29 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Dec 2013 21:29:56 +0000 (13:29 -0800)
Looks like a typo.
Fixes #7011.

R=golang-codereviews, r, bradfitz
CC=golang-codereviews
https://golang.org/cl/45350043

doc/go_spec.html

index bc9ec682a0a501cc49e269d8fdfde8b7efdad541..329e2adb18c1fd8fe54bcf85ce9871a043b6fe1a 100644 (file)
@@ -3929,7 +3929,7 @@ an untyped complex constant.
 
 <pre>
 const ic = complex(0, c)   // ic == 3.75i  (untyped complex constant)
-const iΘ = complex(0, Θ)   // iΘ == 1.5i   (type complex128)
+const iΘ = complex(0, Θ)   // iΘ == 1i     (type complex128)
 </pre>
 
 <p>