Skip to content

Commit 88a9c69

Browse files
committed
Update partial_ord codegen summary
1 parent 05eed52 commit 88a9c69

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/libsyntax_ext/deriving/cmp/partial_ord.rs

+10-3
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,16 @@ fn cs_op(less: bool, equal: bool, cx: &mut ExtCtxt, span: Span, substr: &Substru
199199
//
200200
// ```
201201
// self.f1 < other.f1 || (!(other.f1 < self.f1) &&
202-
// (self.f2 < other.f2 || (!(other.f2 < self.f2) &&
203-
// (false)
204-
// ))
202+
// self.f2 < other.f2
203+
// )
204+
// ```
205+
//
206+
// and for op ==
207+
// `ast::le`
208+
//
209+
// ```
210+
// self.f1 < other.f1 || (self.f1 == other.f1 &&
211+
// self.f2 <= other.f2
205212
// )
206213
// ```
207214
//

0 commit comments

Comments
 (0)