about summary refs log tree commit diff
path: root/src/tools/clippy/clippy_utils
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/clippy_utils
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/clippy_utils')
-rw-r--r--src/tools/clippy/clippy_utils/src/hir_utils.rs2
1 files changed, 1 insertions, 1 deletions
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))