Skip to content

PartialOrd documentation is misleading #28166

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

Closed
stephan-tolksdorf opened this issue Sep 2, 2015 · 0 comments
Closed

PartialOrd documentation is misleading #28166

stephan-tolksdorf opened this issue Sep 2, 2015 · 0 comments

Comments

@stephan-tolksdorf
Copy link

The documentation for cmp::PartialOrd states that "if a < b then !(a > b) and vice versa", but the "vice versa" is somewhat misleading here since !(a > b) doesn't imply a < b if e.g. either of the values is a NaN float. The author probably wanted to say that a > b also implies !(a < b).

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

2 participants