@@ -885,7 +885,7 @@ impl<T:Default> Default for RefCell<T> {
885
885
impl < T : ?Sized + PartialEq > PartialEq for RefCell < T > {
886
886
/// # Panics
887
887
///
888
- /// Panics if the value is currently mutably borrowed.
888
+ /// Panics if the value in either `RefCell` is currently borrowed.
889
889
#[ inline]
890
890
fn eq ( & self , other : & RefCell < T > ) -> bool {
891
891
* self . borrow ( ) == * other. borrow ( )
@@ -899,39 +899,39 @@ impl<T: ?Sized + Eq> Eq for RefCell<T> {}
899
899
impl < T : ?Sized + PartialOrd > PartialOrd for RefCell < T > {
900
900
/// # Panics
901
901
///
902
- /// Panics if the value is currently mutably borrowed.
902
+ /// Panics if the value in either `RefCell` is currently borrowed.
903
903
#[ inline]
904
904
fn partial_cmp ( & self , other : & RefCell < T > ) -> Option < Ordering > {
905
905
self . borrow ( ) . partial_cmp ( & * other. borrow ( ) )
906
906
}
907
907
908
908
/// # Panics
909
909
///
910
- /// Panics if the value is currently mutably borrowed.
910
+ /// Panics if the value in either `RefCell` is currently borrowed.
911
911
#[ inline]
912
912
fn lt ( & self , other : & RefCell < T > ) -> bool {
913
913
* self . borrow ( ) < * other. borrow ( )
914
914
}
915
915
916
916
/// # Panics
917
917
///
918
- /// Panics if the value is currently mutably borrowed.
918
+ /// Panics if the value in either `RefCell` is currently borrowed.
919
919
#[ inline]
920
920
fn le ( & self , other : & RefCell < T > ) -> bool {
921
921
* self . borrow ( ) <= * other. borrow ( )
922
922
}
923
923
924
924
/// # Panics
925
925
///
926
- /// Panics if the value is currently mutably borrowed.
926
+ /// Panics if the value in either `RefCell` is currently borrowed.
927
927
#[ inline]
928
928
fn gt ( & self , other : & RefCell < T > ) -> bool {
929
929
* self . borrow ( ) > * other. borrow ( )
930
930
}
931
931
932
932
/// # Panics
933
933
///
934
- /// Panics if the value is currently mutably borrowed.
934
+ /// Panics if the value in either `RefCell` is currently borrowed.
935
935
#[ inline]
936
936
fn ge ( & self , other : & RefCell < T > ) -> bool {
937
937
* self . borrow ( ) >= * other. borrow ( )
@@ -942,7 +942,7 @@ impl<T: ?Sized + PartialOrd> PartialOrd for RefCell<T> {
942
942
impl < T : ?Sized + Ord > Ord for RefCell < T > {
943
943
/// # Panics
944
944
///
945
- /// Panics if the value is currently mutably borrowed.
945
+ /// Panics if the value in either `RefCell` is currently borrowed.
946
946
#[ inline]
947
947
fn cmp ( & self , other : & RefCell < T > ) -> Ordering {
948
948
self . borrow ( ) . cmp ( & * other. borrow ( ) )
0 commit comments