Skip to content

Commit 491fb01

Browse files
authored
Merge pull request #2755 from phansch/typos
Fix two typos
2 parents be7e554 + ecf4f51 commit 491fb01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/copies.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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`.
174174
fn lint_match_arms(cx: &LateContext, expr: &Expr) {
175175
if let ExprMatch(_, ref arms, MatchSource::Normal) = expr.node {
176176
let hash = |&(_, arm): &(usize, &Arm)| -> u64 {

clippy_lints/src/shadow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)