1
Fork 0

RefCell::get_mut: fix typo

and fix the same typo in a bunch of other places
This commit is contained in:
Ralf Jung 2022-11-25 08:47:59 +01:00
parent a78c9bee4d
commit 6ed4f15940
7 changed files with 8 additions and 8 deletions

View file

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