]> git.lizzy.rs Git - rust.git/commit
Fix PartialEq documentation with regards to floats
authorSteven Fackler <sfackler@gmail.com>
Sat, 7 Jun 2014 20:38:24 +0000 (13:38 -0700)
committerSteven Fackler <sfackler@gmail.com>
Sun, 8 Jun 2014 00:48:54 +0000 (17:48 -0700)
commit92221aba7b5f3e1688548cb97f51a21da981e3e2
tree0c42bafef92b7993ad095f873f5e5f7f36091d4a
parentffdb881337911e65f25dba2dc6e67aed29ffa4cc
Fix PartialEq documentation with regards to floats

It is in fact the case that `NaN != NaN`. The true relations for
compareQuietNotEqual are LT, GT *and* UN.

I also rephrased the docs for PartialOrd since floats are not the only
types which are not totally ordered.
src/libcore/cmp.rs