aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2012-09-22 05:54:38 +1000
committerRobert Griesemer <gri@golang.org>2012-09-22 05:54:38 +1000
commit21bf9e9561acec217492a2308ab46b2b45b9162d (patch)
tree8e4e33ca1d52dd253b6560c1779c13e6c9f5c8b6
parent5d5b9ef64064b98245ab11a5c7dae60fc284645e (diff)
downloadgo-21bf9e9561acec217492a2308ab46b2b45b9162d.tar.gz
go-21bf9e9561acec217492a2308ab46b2b45b9162d.zip
[release-branch.go1] go_spec: unary + and - are also defined for complex types
««« backport 1546a1ef0102 go_spec: unary + and - are also defined for complex types R=r, rsc, iant, ken, iant CC=golang-dev https://golang.org/cl/6450150 »»»
-rw-r--r--doc/go_spec.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html
index 84c7d510e9..80379c32cb 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -1,6 +1,6 @@
<!--{
"Title": "The Go Programming Language Specification",
- "Subtitle": "Version of August 9, 2012",
+ "Subtitle": "Version of August 17, 2012",
"Path": "/ref/spec"
}-->
@@ -2999,10 +2999,10 @@ follows:
</pre>
<p>
-For floating-point numbers,
+For floating-point and complex numbers,
<code>+x</code> is the same as <code>x</code>,
while <code>-x</code> is the negation of <code>x</code>.
-The result of a floating-point division by zero is not specified beyond the
+The result of a floating-point or complex division by zero is not specified beyond the
IEEE-754 standard; whether a <a href="#Run_time_panics">run-time panic</a>
occurs is implementation-specific.
</p>