Skip to content

Commit f46d6f1

Browse files
committed
---
yaml --- r: 116576 b: refs/heads/snap-stage3 c: 6b3d380 h: refs/heads/master v: v3
1 parent 0b45d36 commit f46d6f1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 92221aba7b5f3e1688548cb97f51a21da981e3e2
4+
refs/heads/snap-stage3: 6b3d3803eb8437907153bbb1b3c3978b29cd3a3b
55
refs/heads/try: 009d898a9422ac04c1aa60c0e9aff3abc5fa4672
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libcore/cmp.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@
4343
/// equivalence relation. For example, in floating point numbers `NaN != NaN`,
4444
/// so floating point types implement `PartialEq` but not `Eq`.
4545
///
46-
/// PartialEq only requires the `eq` method to be implemented; `ne` is its
47-
/// negation by default.
46+
/// PartialEq only requires the `eq` method to be implemented; `ne` is defined
47+
/// in terms of it by default. Any manual implementation of `ne` *must* respect
48+
/// the rule that `eq` is a strict inverse of `ne`; that is, `!(a == b)` if and
49+
/// only if `a != b`.
4850
///
4951
/// Eventually, this will be implemented by default for types that implement
5052
/// `Eq`.

0 commit comments

Comments
 (0)