Fix example in docs

This commit is contained in:
James Wang 2019-09-24 17:05:43 -05:00
parent 52408f5b7d
commit 7e8afe2001
No known key found for this signature in database
GPG key ID: 5B80C0B3F263CD5B

View file

@ -36,7 +36,7 @@ declare_clippy_lint! {
/// # fn b() {} /// # fn b() {}
/// # fn c() {} /// # fn c() {}
/// fn f(x: u8, y: u8) { /// fn f(x: u8, y: u8) {
/// match x.cmp(y) { /// match x.cmp(&y) {
/// Ordering::Greater => a(), /// Ordering::Greater => a(),
/// Ordering::Less => b(), /// Ordering::Less => b(),
/// Ordering::Equal => c() /// Ordering::Equal => c()