mirror of
https://github.com/golang/go
synced 2024-11-21 21:44:40 -07:00
spec: fix typo in example comment
R=rsc, golang-dev CC=golang-dev https://golang.org/cl/5475046
This commit is contained in:
parent
a250f37cbc
commit
9a358df947
@ -3458,7 +3458,7 @@ an untyped complex constant.
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<pre>
|
<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)
|
const iΘ = complex(0, Θ) // iΘ == 1.5i (type complex128)
|
||||||
</pre>
|
</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
|
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>
|
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>.
|
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>.
|
<a href="#Errors"><code>error</code></a>.
|
||||||
The exact error values that
|
The exact error values that
|
||||||
represent distinct run-time error conditions are unspecified.
|
represent distinct run-time error conditions are unspecified.
|
||||||
|
Loading…
Reference in New Issue
Block a user