Skip to content

Commit 268d230

Browse files
authored
Rollup merge of rust-lang#104873 - RalfJung:therefore, r=Dylan-DPC
RefCell::get_mut: fix typo and fix the same typo in a bunch of other places
2 parents 2ad5e48 + 424ae23 commit 268d230

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_dev/src/setup/git_hook.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use super::verify_inside_clippy_dir;
66
/// Rusts setup uses `git rev-parse --git-common-dir` to get the root directory of the repo.
77
/// I've decided against this for the sake of simplicity and to make sure that it doesn't install
88
/// the hook if `clippy_dev` would be used in the rust tree. The hook also references this tool
9-
/// for formatting and should therefor only be used in a normal clone of clippy
9+
/// for formatting and should therefore only be used in a normal clone of clippy
1010
const REPO_GIT_DIR: &str = ".git";
1111
const HOOK_SOURCE_FILE: &str = "util/etc/pre-commit.sh";
1212
const HOOK_TARGET_FILE: &str = ".git/hooks/pre-commit";

clippy_utils/src/hir_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ impl HirEqInterExpr<'_, '_, '_> {
113113
}
114114
}
115115

116-
// eq_pat adds the HirIds to the locals map. We therefor call it last to make sure that
116+
// eq_pat adds the HirIds to the locals map. We therefore call it last to make sure that
117117
// these only get added if the init and type is equal.
118118
both(&l.init, &r.init, |l, r| self.eq_expr(l, r))
119119
&& both(&l.ty, &r.ty, |l, r| self.eq_ty(l, r))

0 commit comments

Comments
 (0)