mirror of
https://github.com/golang/go
synced 2024-09-18 15:32:18 +00:00
spec: example shows wrong value for complex constant
Looks like a typo. Fixes #7011. R=golang-codereviews, r, bradfitz CC=golang-codereviews https://golang.org/cl/45350043
This commit is contained in:
parent
206eff7112
commit
8183ed19b9
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue