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

Unhelpful Display implementation for FloatIsNaN #24

Closed
dtolnay opened this issue Apr 10, 2017 · 0 comments
Closed

Unhelpful Display implementation for FloatIsNaN #24

dtolnay opened this issue Apr 10, 2017 · 0 comments

Comments

@dtolnay
Copy link
Contributor

dtolnay commented Apr 10, 2017

extern crate ordered_float;

fn main() {
    println!("{}", ordered_float::NotNaN::new(::std::f64::NAN).unwrap_err());
}
FloatIsNan

This message (and Display output in general) should be designed to be human-readable and self explanatory. PascalCase belongs in Debug impls.

@dtolnay dtolnay changed the title Unhelpful Display implementation for ordered_float::FloatIsNaN Unhelpful Display implementation for FloatIsNaN Apr 10, 2017
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