File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 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]) {
170170 }
171171}
172172
173- /// Implementation if `MATCH_SAME_ARMS`.
173+ /// Implementation of `MATCH_SAME_ARMS`.
174174fn lint_match_arms ( cx : & LateContext , expr : & Expr ) {
175175 if let ExprMatch ( _, ref arms, MatchSource :: Normal ) = expr. node {
176176 let hash = |& ( _, arm) : & ( usize , & Arm ) | -> u64 {
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ declare_clippy_lint! {
5555/// **Why is this bad?** Name shadowing can hurt readability, especially in
5656/// large code bases, because it is easy to lose track of the active binding at
5757/// 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.
5959///
6060/// **Known problems:** This lint, as the other shadowing related lints,
6161/// currently only catches very simple patterns.
You can’t perform that action at this time.
0 commit comments