Skip to content

Commit f360686

Browse files
authored
Rollup merge of #104873 - RalfJung:therefore, r=Dylan-DPC
RefCell::get_mut: fix typo and fix the same typo in a bunch of other places
2 parents 8babe1c + 6ed4f15 commit f360686

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

library/core/src/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ impl<T: ?Sized> RefCell<T> {
10251025
///
10261026
/// Since this method borrows `RefCell` mutably, it is statically guaranteed
10271027
/// that no borrows to the underlying data exist. The dynamic checks inherent
1028-
/// in [`borrow_mut`] and most other methods of `RefCell` are therefor
1028+
/// in [`borrow_mut`] and most other methods of `RefCell` are therefore
10291029
/// unnecessary.
10301030
///
10311031
/// This method can only be called if `RefCell` can be mutably borrowed,

src/tools/clippy/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";

src/tools/clippy/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)