Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrInvalidNaNValue should be a const #6

Closed
x448 opened this issue Jan 17, 2020 · 0 comments
Closed

ErrInvalidNaNValue should be a const #6

x448 opened this issue Jan 17, 2020 · 0 comments

Comments

@x448
Copy link
Owner

x448 commented Jan 17, 2020

-var ErrInvalidNaNValue = errors.New("float16: invalid NaN value, expected IEEE 754 NaN")
+const ErrInvalidNaNValue = float16Error("float16: invalid NaN value, expected IEEE 754 NaN")
+
+type float16Error string
+
+func (e float16Error) Error() string { return string(e) }
@x448 x448 closed this as completed in 1dace37 Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant