mirror of
https://github.com/golang/go
synced 2024-11-24 17:30:18 -07:00
spec: adjust complex constant example
Fixes https://golang.org/cl/5444053/#msg41 R=golang-dev, iant CC=golang-dev https://golang.org/cl/5478058
This commit is contained in:
parent
7ab25a441c
commit
1084ab98b7
@ -1,5 +1,5 @@
|
|||||||
<!-- title The Go Programming Language Specification -->
|
<!-- title The Go Programming Language Specification -->
|
||||||
<!-- subtitle Version of December 8, 2011 -->
|
<!-- subtitle Version of December 10, 2011 -->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
TODO
|
TODO
|
||||||
@ -3432,7 +3432,7 @@ const j = true // j == true (untyped boolean constant)
|
|||||||
const k = 'w' + 1 // k == 'x' (untyped character constant)
|
const k = 'w' + 1 // k == 'x' (untyped character constant)
|
||||||
const l = "hi" // l == "hi" (untyped string constant)
|
const l = "hi" // l == "hi" (untyped string constant)
|
||||||
const m = string(k) // m == "x" (type string)
|
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 Δ = Σ + 2.0e-4 // (untyped complex constant)
|
||||||
const Φ = iota*1i - 1/1i // (untyped complex constant)
|
const Φ = iota*1i - 1/1i // (untyped complex constant)
|
||||||
</pre>
|
</pre>
|
||||||
|
Loading…
Reference in New Issue
Block a user