@@ -898,7 +898,7 @@ impl<T: ?Sized> RefCell<T> {
898
898
Ok ( Ref { value : unsafe { & * self . value . get ( ) } , borrow : b } )
899
899
}
900
900
None => Err ( BorrowError {
901
- // If a borrow occured , then we must already have an outstanding borrow,
901
+ // If a borrow occurred , then we must already have an outstanding borrow,
902
902
// so `borrowed_at` will be `Some`
903
903
#[ cfg( feature = "debug_refcell" ) ]
904
904
location : self . borrowed_at . get ( ) . unwrap ( ) ,
@@ -983,7 +983,7 @@ impl<T: ?Sized> RefCell<T> {
983
983
Ok ( RefMut { value : unsafe { & mut * self . value . get ( ) } , borrow : b } )
984
984
}
985
985
None => Err ( BorrowMutError {
986
- // If a borrow occured , then we must already have an outstanding borrow,
986
+ // If a borrow occurred , then we must already have an outstanding borrow,
987
987
// so `borrowed_at` will be `Some`
988
988
#[ cfg( feature = "debug_refcell" ) ]
989
989
location : self . borrowed_at . get ( ) . unwrap ( ) ,
@@ -1104,7 +1104,7 @@ impl<T: ?Sized> RefCell<T> {
1104
1104
Ok ( unsafe { & * self . value . get ( ) } )
1105
1105
} else {
1106
1106
Err ( BorrowError {
1107
- // If a borrow occured , then we must already have an outstanding borrow,
1107
+ // If a borrow occurred , then we must already have an outstanding borrow,
1108
1108
// so `borrowed_at` will be `Some`
1109
1109
#[ cfg( feature = "debug_refcell" ) ]
1110
1110
location : self . borrowed_at . get ( ) . unwrap ( ) ,
0 commit comments