]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo "gurantees -> guarantees"
authorPhoebe Bell <minaphoebebell@gmail.com>
Wed, 20 Nov 2019 02:39:36 +0000 (18:39 -0800)
committerPhoebe Bell <minaphoebebell@gmail.com>
Fri, 17 Jan 2020 02:27:08 +0000 (18:27 -0800)
src/libcore/cell.rs

index c530432f802db21d5cc3cfd30dacd2361b243f2a..f351735bef2401d508ba5409cd50c312c3b0f1d9 100644 (file)
@@ -897,7 +897,7 @@ pub fn borrow_mut(&self) -> RefMut<'_, T> {
     #[inline]
     pub fn try_borrow_mut(&self) -> Result<RefMut<'_, T>, BorrowMutError> {
         match BorrowRefMut::new(&self.borrow) {
     #[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: () }),
         }
             Some(b) => Ok(RefMut { value: unsafe { &mut *self.value.get() }, borrow: b }),
             None => Err(BorrowMutError { _private: () }),
         }