diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-02-27 15:48:50 +0100 |
|---|---|---|
| committer | Mazdak Farrokhzad <twingoow@gmail.com> | 2018-02-27 15:48:50 +0100 |
| commit | f8ebb3f09fa98cf5583f6bd8d5677a1f4dd0941d (patch) | |
| tree | 99b87e612a1e36e4e70419841591991484a61401 /src/libcore | |
| parent | bde855518b9f21fe877e1ed62eaa114861131d15 (diff) | |
| download | rust-f8ebb3f09fa98cf5583f6bd8d5677a1f4dd0941d.tar.gz rust-f8ebb3f09fa98cf5583f6bd8d5677a1f4dd0941d.zip | |
fix wording on panics in binary operators on RefCells"
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/cell.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libcore/cell.rs b/src/libcore/cell.rs index e91b2c793c5..419ae96b94b 100644 --- a/src/libcore/cell.rs +++ b/src/libcore/cell.rs @@ -885,7 +885,7 @@ impl<T:Default> Default for RefCell<T> { impl<T: ?Sized + PartialEq> PartialEq for RefCell<T> { /// # Panics /// - /// Panics if the value is currently mutably borrowed. + /// Panics if the value in either `RefCell` is currently borrowed. #[inline] fn eq(&self, other: &RefCell<T>) -> bool { *self.borrow() == *other.borrow() @@ -899,7 +899,7 @@ impl<T: ?Sized + Eq> Eq for RefCell<T> {} impl<T: ?Sized + PartialOrd> PartialOrd for RefCell<T> { /// # Panics /// - /// Panics if the value is currently mutably borrowed. + /// Panics if the value in either `RefCell` is currently borrowed. #[inline] fn partial_cmp(&self, other: &RefCell<T>) -> Option<Ordering> { self.borrow().partial_cmp(&*other.borrow()) @@ -907,7 +907,7 @@ impl<T: ?Sized + PartialOrd> PartialOrd for RefCell<T> { /// # Panics /// - /// Panics if the value is currently mutably borrowed. + /// Panics if the value in either `RefCell` is currently borrowed. #[inline] fn lt(&self, other: &RefCell<T>) -> bool { *self.borrow() < *other.borrow() @@ -915,7 +915,7 @@ impl<T: ?Sized + PartialOrd> PartialOrd for RefCell<T> { /// # Panics /// - /// Panics if the value is currently mutably borrowed. + /// Panics if the value in either `RefCell` is currently borrowed. #[inline] fn le(&self, other: &RefCell<T>) -> bool { *self.borrow() <= *other.borrow() @@ -923,7 +923,7 @@ impl<T: ?Sized + PartialOrd> PartialOrd for RefCell<T> { /// # Panics /// - /// Panics if the value is currently mutably borrowed. + /// Panics if the value in either `RefCell` is currently borrowed. #[inline] fn gt(&self, other: &RefCell<T>) -> bool { *self.borrow() > *other.borrow() @@ -931,7 +931,7 @@ impl<T: ?Sized + PartialOrd> PartialOrd for RefCell<T> { /// # Panics /// - /// Panics if the value is currently mutably borrowed. + /// Panics if the value in either `RefCell` is currently borrowed. #[inline] fn ge(&self, other: &RefCell<T>) -> bool { *self.borrow() >= *other.borrow() @@ -942,7 +942,7 @@ impl<T: ?Sized + PartialOrd> PartialOrd for RefCell<T> { impl<T: ?Sized + Ord> Ord for RefCell<T> { /// # Panics /// - /// Panics if the value is currently mutably borrowed. + /// Panics if the value in either `RefCell` is currently borrowed. #[inline] fn cmp(&self, other: &RefCell<T>) -> Ordering { self.borrow().cmp(&*other.borrow()) |
