You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
The documentation for
cmp::PartialOrd
states that "ifa < b
then!(a > b)
and vice versa", but the "vice versa" is somewhat misleading here since!(a > b)
doesn't implya < b
if e.g. either of the values is a NaN float. The author probably wanted to say thata > b
also implies!(a < b)
.The text was updated successfully, but these errors were encountered: