Fix typo "gurantees -> guarantees"
This commit is contained in:
parent
19fdc6e091
commit
a93e99cae7
1 changed files with 1 additions and 1 deletions
|
|
@ -897,7 +897,7 @@ impl<T: ?Sized> RefCell<T> {
|
|||
#[inline]
|
||||
pub fn try_borrow_mut(&self) -> Result<RefMut<'_, T>, BorrowMutError> {
|
||||
match BorrowRefMut::new(&self.borrow) {
|
||||
// SAFETY: `BorrowRef` gurantees unique access
|
||||
// SAFETY: `BorrowRef` guarantees unique access
|
||||
Some(b) => Ok(RefMut { value: unsafe { &mut *self.value.get() }, borrow: b }),
|
||||
None => Err(BorrowMutError { _private: () }),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue