Merge pull request #1233 from l1048576/master
Fix typo in example codes of "match" lints
This commit is contained in:
commit
25b0396a57
@ -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…
x
Reference in New Issue
Block a user