]> Cypherpunks repositories - gostls13.git/commitdiff
spec: fix typo in example comment
authorCharles L. Dorian <cldorian@gmail.com>
Fri, 9 Dec 2011 03:27:14 +0000 (22:27 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 9 Dec 2011 03:27:14 +0000 (22:27 -0500)
R=rsc, golang-dev
CC=golang-dev
https://golang.org/cl/5475046

doc/go_spec.html

index cd506308cee353523c926167c4591115b889aeb1..673b36d3e01f28a910207836b60a4c3c46ec6ada 100644 (file)
@@ -3458,7 +3458,7 @@ an untyped complex constant.
 </p>
 
 <pre>
-const ic = complex(0, c)   // iΓ == 3.75i (untyped complex constant)
+const ic = complex(0, c)   // ic == 3.75i (untyped complex constant)
 const iΘ = complex(0, Θ)   // iΘ == 1.5i  (type complex128)
 </pre>
 
@@ -5200,7 +5200,7 @@ Execution errors such as attempting to index an array out
 of bounds trigger a <i>run-time panic</i> equivalent to a call of
 the built-in function <a href="#Handling_panics"><code>panic</code></a>
 with a value of the implementation-defined interface type <code>runtime.Error</code>.
-That type satisfies the predeclared interface type 
+That type satisfies the predeclared interface type
 <a href="#Errors"><code>error</code></a>.
 The exact error values that
 represent distinct run-time error conditions are unspecified.