Fix typo in example codes of "matches" lints

Use `=>` for match arms (instead of wrong `->`).
This commit is contained in:
Takuma YOSHIOKA 2016-09-18 20:17:25 +09:00
parent b8b3eb9bf1
commit 7b6a60ca69
No known key found for this signature in database
GPG Key ID: C36E8DCEA77569E5
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ use utils::sugg::Sugg;
/// **Example:** /// **Example:**
/// ```rust /// ```rust
/// match x { /// match x {
/// Some(ref foo) -> bar(foo), /// Some(ref foo) => bar(foo),
/// _ => () /// _ => ()
/// } /// }
/// ``` /// ```
@ -43,7 +43,7 @@ declare_lint! {
/// **Example:** /// **Example:**
/// ```rust /// ```rust
/// match x { /// match x {
/// Some(ref foo) -> bar(foo), /// Some(ref foo) => bar(foo),
/// _ => bar(other_ref), /// _ => bar(other_ref),
/// } /// }
/// ``` /// ```