Fix typo "gurantees -> guarantees"

This commit is contained in:
Phoebe Bell 2019-11-19 18:39:36 -08:00
parent 19fdc6e091
commit a93e99cae7

View File

@ -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: () }),
}