Rollup merge of #28760 - steveklabnik:gh28166, r=alexcrichton

Fixes #28166
This commit is contained in:
Steve Klabnik
2015-09-30 18:20:03 -04:00
+1 -1
View File
@@ -218,7 +218,7 @@ fn partial_cmp(&self, other: &Ordering) -> Option<Ordering> {
///
/// The comparison must satisfy, for all `a`, `b` and `c`:
///
/// - antisymmetry: if `a < b` then `!(a > b)` and vice versa; and
/// - antisymmetry: if `a < b` then `!(a > b)`, as well as `a > b` implying `!(a < b)`; and
/// - transitivity: `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`.
///
/// Note that these requirements mean that the trait itself must be implemented symmetrically and