1
0
mirror of https://github.com/golang/go synced 2024-11-22 07:04:40 -07:00

go_spec.html: fix typo and link

R=r
CC=golang-dev
https://golang.org/cl/382045
This commit is contained in:
Robert Griesemer 2010-03-10 15:29:36 -08:00
parent 35aec6c7f7
commit ef4c2b85a0

View File

@ -3383,13 +3383,13 @@ operations with untyped integer and floating-point constants; the
result is an untyped complex constant. result is an untyped complex constant.
Complex constants are always constructed from Complex constants are always constructed from
constant expressions involving imaginary constant expressions involving imaginary
literals or constants derived from them, or calls of the literals or constants derived from them, or calls of the built-in function
<a href="#Built-in_functions">built-in function</a> <code>cmplx</code>. <a href="#Complex_numbers"><code>cmplx</code></a>.
</p> </p>
<pre> <pre>
const Σ = 1 - 0.707i const Σ = 1 - 0.707i
const Δ = Σ + 2.0e-4 - 1/i const Δ = Σ + 2.0e-4 - 1/1i
const Φ = iota * 1i const Φ = iota * 1i
const iΓ = cmplx(0, Γ) const iΓ = cmplx(0, Γ)
</pre> </pre>