Improve the match_same_arms doc

This commit is contained in:
mcarton 2016-04-01 13:14:39 +02:00
parent 45bb75bee2
commit 8bfe38c432

View File

@ -38,7 +38,9 @@ declare_lint! {
/// **What it does:** This lint checks for `match` with identical arm bodies.
///
/// **Why is this bad?** This is probably a copy & paste error.
/// **Why is this bad?** This is probably a copy & paste error. If arm bodies are the same on
/// purpose, you can factor them
/// [using `|`](https://doc.rust-lang.org/book/patterns.html#multiple-patterns).
///
/// **Known problems:** Hopefully none.
///