Skip to content

Commit 32b2834

Browse files
authored
demonstrate symmetry
1 parent 0394dce commit 32b2834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cmp.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ use self::Ordering::*;
170170
/// let b2 = Book { isbn: 3, format: BookFormat::Ebook };
171171
///
172172
/// assert!(b1 == BookFormat::Paperback);
173-
/// assert!(b1 != BookFormat::Ebook);
173+
/// assert!(BookFormat::Ebook != b1);
174174
/// assert!(b1 == b2);
175175
/// ```
176176
///

0 commit comments

Comments
 (0)