Commit 1084ab98 authored by Robert Hencke's avatar Robert Hencke Committed by Ian Lance Taylor

spec: adjust complex constant example

Fixes https://golang.org/cl/5444053/#msg41

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/5478058
parent 7ab25a44
<!-- 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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment