Commit d13f479d authored by Robert Griesemer's avatar Robert Griesemer

math/big: better doc strings for ErrNaN functionality

Change-Id: Ia0944e7b47193465d3ec37fc8dc46dea9b5dcc6b
Reviewed-on: https://go-review.googlesource.com/8710Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent d1b1eee2
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment