Skip to content

Commit 7e8afe2

Browse files
committed
Fix example in docs
1 parent 52408f5 commit 7e8afe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/comparison_chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare_clippy_lint! {
3636
/// # fn b() {}
3737
/// # fn c() {}
3838
/// fn f(x: u8, y: u8) {
39-
/// match x.cmp(y) {
39+
/// match x.cmp(&y) {
4040
/// Ordering::Greater => a(),
4141
/// Ordering::Less => b(),
4242
/// Ordering::Equal => c()

0 commit comments

Comments
 (0)