]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] go_spec: unary + and - are also defined for complex types
authorRobert Griesemer <gri@golang.org>
Fri, 21 Sep 2012 19:54:38 +0000 (05:54 +1000)
committerRobert Griesemer <gri@golang.org>
Fri, 21 Sep 2012 19:54:38 +0000 (05:54 +1000)
««« 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

»»»

doc/go_spec.html

index 84c7d510e9b53d5ae9e3e70ad4cdbb7d9c33bf4e..80379c32cb9dea21f4aa4b875b6820993973c28e 100644 (file)
@@ -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>