diff options
author | Robert Griesemer <gri@golang.org> | 2018-10-23 14:54:59 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2018-10-23 23:03:59 +0000 |
commit | 1e38ecdbbee983a049500102af9e50ee33b446a8 (patch) | |
tree | 53664cbfbe5621b5c7fb0807ceff9c10013639f5 /doc/go_spec.html | |
parent | 9a7e70e34f98a8eea5d18083634b6e908b23e619 (diff) | |
download | go-1e38ecdbbee983a049500102af9e50ee33b446a8.tar.gz go-1e38ecdbbee983a049500102af9e50ee33b446a8.zip |
spec: refer to "run-time panic" rather than "exception" (cleanup)
Fixes #28341.
Change-Id: If8ae844c9b5e843ce9229c0a555f7006426baed7
Reviewed-on: https://go-review.googlesource.com/c/144260
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r-- | doc/go_spec.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index b8e11e83a4..cc2bada913 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,6 +1,6 @@ <!--{ "Title": "The Go Programming Language Specification", - "Subtitle": "Version of October 17, 2018", + "Subtitle": "Version of October 23, 2018", "Path": "/ref/spec" }--> @@ -3260,7 +3260,7 @@ var v, ok T1 = x.(T) yields an additional untyped boolean value. The value of <code>ok</code> is <code>true</code> if the assertion holds. Otherwise it is <code>false</code> and the value of <code>v</code> is the <a href="#The_zero_value">zero value</a> for type <code>T</code>. -No run-time panic occurs in this case. +No <a href="#Run_time_panics">run-time panic</a> occurs in this case. </p> @@ -3624,7 +3624,7 @@ For signed integers, the operations <code>+</code>, <code>-</code>, <code>*</code>, <code>/</code>, and <code><<</code> may legally overflow and the resulting value exists and is deterministically defined by the signed integer representation, the operation, and its operands. -No exception is raised as a result of overflow. +Overflow does not cause a <a href="#Run_time_panics">run-time panic</a>. A compiler may not optimize code under the assumption that overflow does not occur. For instance, it may not assume that <code>x < x + 1</code> is always true. </p> |