Skip to content

Commit a93e99c

Browse files
committed
Fix typo "gurantees -> guarantees"
1 parent 19fdc6e commit a93e99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/cell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ impl<T: ?Sized> RefCell<T> {
897897
#[inline]
898898
pub fn try_borrow_mut(&self) -> Result<RefMut<'_, T>, BorrowMutError> {
899899
match BorrowRefMut::new(&self.borrow) {
900-
// SAFETY: `BorrowRef` gurantees unique access
900+
// SAFETY: `BorrowRef` guarantees unique access
901901
Some(b) => Ok(RefMut { value: unsafe { &mut *self.value.get() }, borrow: b }),
902902
None => Err(BorrowMutError { _private: () }),
903903
}

0 commit comments

Comments
 (0)