File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ fn lint_same_cond(cx: &LateContext, conds: &[&Expr]) {
170
170
}
171
171
}
172
172
173
- /// Implementation if `MATCH_SAME_ARMS`.
173
+ /// Implementation of `MATCH_SAME_ARMS`.
174
174
fn lint_match_arms ( cx : & LateContext , expr : & Expr ) {
175
175
if let ExprMatch ( _, ref arms, MatchSource :: Normal ) = expr. node {
176
176
let hash = |& ( _, arm) : & ( usize , & Arm ) | -> u64 {
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ declare_clippy_lint! {
55
55
/// **Why is this bad?** Name shadowing can hurt readability, especially in
56
56
/// large code bases, because it is easy to lose track of the active binding at
57
57
/// any place in the code. This can be alleviated by either giving more specific
58
- /// names to bindings ore introducing more scopes to contain the bindings.
58
+ /// names to bindings or introducing more scopes to contain the bindings.
59
59
///
60
60
/// **Known problems:** This lint, as the other shadowing related lints,
61
61
/// currently only catches very simple patterns.
You can’t perform that action at this time.
0 commit comments