Merge pull request #1233 from l1048576/master

Fix typo in example codes of "match" lints
This commit is contained in:
Martin Carton 2016-09-18 13:28:55 +02:00 committed by GitHub
commit 25b0396a57

View File

@ -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),
/// }
/// ```