Skip to content

Commit

Permalink
Update strict weak ordering article
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-rifkin committed Jul 31, 2023
1 parent b17deda commit d5a5035
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiki_articles/strict_weak.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ For example, when ordering strings by length, strings of the same length are
equivalent to each other, but not to other strings.
This satisfies **4.**.

It is **not okay** to have elements like `NaN`, which are equivalent to
`1` and `2`, but `1` and `2` are not equivalent to each other.
It is **not okay** to have elements like `NaN` because by the transitive definition `equiv(NAN, 1)` and `equiv(NAN, 2)`
are true; but `1` is not equal to `2`.
`NaN` is equivalent to everything because `NaN < x` is always false.

## See Also
Expand Down

0 comments on commit d5a5035

Please sign in to comment.