mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
Fix example in docs
This commit is contained in:
parent
52408f5b7d
commit
7e8afe2001
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue