Skip to content

Commit 25b0396

Browse files
authored
Merge pull request #1233 from l1048576/master
Fix typo in example codes of "match" lints
2 parents b8b3eb9 + 7b6a60c commit 25b0396

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/matches.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use utils::sugg::Sugg;
2222
/// **Example:**
2323
/// ```rust
2424
/// match x {
25-
/// Some(ref foo) -> bar(foo),
25+
/// Some(ref foo) => bar(foo),
2626
/// _ => ()
2727
/// }
2828
/// ```
@@ -43,7 +43,7 @@ declare_lint! {
4343
/// **Example:**
4444
/// ```rust
4545
/// match x {
46-
/// Some(ref foo) -> bar(foo),
46+
/// Some(ref foo) => bar(foo),
4747
/// _ => bar(other_ref),
4848
/// }
4949
/// ```

0 commit comments

Comments
 (0)