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:**
|
/// **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),
|
||||||
/// }
|
/// }
|
||||||
/// ```
|
/// ```
|
||||||
|
|
Loading…
Reference in New Issue