diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 55f9e7ec0..a3a4b7155 100644 --- a/clippy_lints/src/matches.rs +++ b/clippy_lints/src/matches.rs @@ -22,7 +22,7 @@ use utils::sugg::Sugg; /// **Example:** /// ```rust /// match x { -/// Some(ref foo) -> bar(foo), +/// Some(ref foo) => bar(foo), /// _ => () /// } /// ``` @@ -43,7 +43,7 @@ declare_lint! { /// **Example:** /// ```rust /// match x { -/// Some(ref foo) -> bar(foo), +/// Some(ref foo) => bar(foo), /// _ => bar(other_ref), /// } /// ```