We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fdc6e commit a93e99cCopy full SHA for a93e99c
src/libcore/cell.rs
@@ -897,7 +897,7 @@ impl<T: ?Sized> RefCell<T> {
897
#[inline]
898
pub fn try_borrow_mut(&self) -> Result<RefMut<'_, T>, BorrowMutError> {
899
match BorrowRefMut::new(&self.borrow) {
900
- // SAFETY: `BorrowRef` gurantees unique access
+ // SAFETY: `BorrowRef` guarantees unique access
901
Some(b) => Ok(RefMut { value: unsafe { &mut *self.value.get() }, borrow: b }),
902
None => Err(BorrowMutError { _private: () }),
903
}
0 commit comments