From 7b6a60ca69cdb4e8e6e875798b272041d25d49ed Mon Sep 17 00:00:00 2001 From: Takuma YOSHIOKA Date: Sun, 18 Sep 2016 20:17:25 +0900 Subject: [PATCH] Fix typo in example codes of "matches" lints Use `=>` for match arms (instead of wrong `->`). --- clippy_lints/src/matches.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clippy_lints/src/matches.rs b/clippy_lints/src/matches.rs index 55f9e7ec06d8..a3a4b7155f5b 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), /// } /// ```