about summary refs log tree commit diff
path: root/src/tools/clippy
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-11-25 08:47:59 +0100
committerRalf Jung <post@ralfj.de>2022-11-25 08:52:06 +0100
commit6ed4f15940d94d290e23bb72df92c2fb73e8fbdc (patch)
tree5eb9d6a79118d0a0c9930017e6e9147535a60283 /src/tools/clippy
parenta78c9bee4d9d51a3891bd8ecae1f28a93b83653b (diff)
downloadrust-6ed4f15940d94d290e23bb72df92c2fb73e8fbdc.tar.gz
rust-6ed4f15940d94d290e23bb72df92c2fb73e8fbdc.zip
RefCell::get_mut: fix typo
and fix the same typo in a bunch of other places
Diffstat (limited to 'src/tools/clippy')
-rw-r--r--src/tools/clippy/clippy_dev/src/setup/git_hook.rs2
-rw-r--r--src/tools/clippy/clippy_utils/src/hir_utils.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/clippy/clippy_dev/src/setup/git_hook.rs b/src/tools/clippy/clippy_dev/src/setup/git_hook.rs
index 1de5b1940ba..c7c53bc69d0 100644
--- a/src/tools/clippy/clippy_dev/src/setup/git_hook.rs
+++ b/src/tools/clippy/clippy_dev/src/setup/git_hook.rs
@@ -6,7 +6,7 @@ use super::verify_inside_clippy_dir;
 /// Rusts setup uses `git rev-parse --git-common-dir` to get the root directory of the repo.
 /// I've decided against this for the sake of simplicity and to make sure that it doesn't install
 /// the hook if `clippy_dev` would be used in the rust tree. The hook also references this tool
-/// for formatting and should therefor only be used in a normal clone of clippy
+/// for formatting and should therefore only be used in a normal clone of clippy
 const REPO_GIT_DIR: &str = ".git";
 const HOOK_SOURCE_FILE: &str = "util/etc/pre-commit.sh";
 const HOOK_TARGET_FILE: &str = ".git/hooks/pre-commit";
diff --git a/src/tools/clippy/clippy_utils/src/hir_utils.rs b/src/tools/clippy/clippy_utils/src/hir_utils.rs
index cf24ec8b67b..abe10f3c81e 100644
--- a/src/tools/clippy/clippy_utils/src/hir_utils.rs
+++ b/src/tools/clippy/clippy_utils/src/hir_utils.rs
@@ -113,7 +113,7 @@ impl HirEqInterExpr<'_, '_, '_> {
                     }
                 }
 
-                // eq_pat adds the HirIds to the locals map. We therefor call it last to make sure that
+                // eq_pat adds the HirIds to the locals map. We therefore call it last to make sure that
                 // these only get added if the init and type is equal.
                 both(&l.init, &r.init, |l, r| self.eq_expr(l, r))
                     && both(&l.ty, &r.ty, |l, r| self.eq_ty(l, r))