Skip to content

Commit d13f479

Browse files
committed
math/big: better doc strings for ErrNaN functionality
Change-Id: Ia0944e7b47193465d3ec37fc8dc46dea9b5dcc6b Reviewed-on: https://go-review.googlesource.com/8710 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent d1b1eee commit d13f479

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/math/big/float.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ type Float struct {
6565
exp int32
6666
}
6767

68-
// Float operations that would lead to a NaN under IEEE-754 rules cause
69-
// a run-time panic of ErrNaN type.
68+
// An ErrNaN panic is raised by a Float operation that would lead to
69+
// a NaN under IEEE-754 rules. An ErrNaN implements the error interface.
7070
type ErrNaN struct {
7171
msg string
7272
}
7373

74-
// ErrNan implements the error interface.
7574
func (err ErrNaN) Error() string {
7675
return err.msg
7776
}

0 commit comments

Comments
 (0)