Fix typo in example codes of "matches" lints
Use `=>` for match arms (instead of wrong `->`).
This commit is contained in:
parent
b8b3eb9bf1
commit
7b6a60ca69
|
@ -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),
|
||||
/// }
|
||||
/// ```
|
||||
|
|
Loading…
Reference in New Issue