]> Cypherpunks repositories - gostls13.git/commitdiff
math/big: better doc strings for ErrNaN functionality
authorRobert Griesemer <gri@golang.org>
Thu, 9 Apr 2015 20:11:53 +0000 (13:11 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 9 Apr 2015 20:18:32 +0000 (20:18 +0000)
Change-Id: Ia0944e7b47193465d3ec37fc8dc46dea9b5dcc6b
Reviewed-on: https://go-review.googlesource.com/8710
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/math/big/float.go

index 35ad2567e710195092569c5f6217a592424e1872..d46c046e670742ca8d76fa078588c162d5c93033 100644 (file)
@@ -65,13 +65,12 @@ type Float struct {
        exp  int32
 }
 
-// Float operations that would lead to a NaN under IEEE-754 rules cause
-// a run-time panic of ErrNaN type.
+// An ErrNaN panic is raised by a Float operation that would lead to
+// a NaN under IEEE-754 rules. An ErrNaN implements the error interface.
 type ErrNaN struct {
        msg string
 }
 
-// ErrNan implements the error interface.
 func (err ErrNaN) Error() string {
        return err.msg
 }