aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-15 20:19:35 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-15 20:19:35 +0000
commit15783c271f04ce5cd99ed777071b93469e350ebc (patch)
tree3c1d6582216340b676bc4530f7e1b5bd1a466868
parentf97aaf70db67da69e40a79cd0c60303cd613c016 (diff)
downloadruby-15783c271f04ce5cd99ed777071b93469e350ebc.tar.gz
* compar.c: Update doc for == [#7688] [ci-skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--NEWS4
-rw-r--r--compar.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index c207b191b5..2661445e87 100644
--- a/NEWS
+++ b/NEWS
@@ -57,6 +57,10 @@ with all sufficient information, see the ChangeLog file.
* Array#bsearch_index [Feature #10730]
* Array#dig [Feature #11643]
+* Comparable
+
+ * Comparable#== no longer rescues exceptions [Feature #7688]
+
* Enumerable
* Enumerable#grep_v is added as inverse version of Enumerable#grep.
diff --git a/compar.c b/compar.c
index 946d0e07e9..b040641651 100644
--- a/compar.c
+++ b/compar.c
@@ -64,9 +64,6 @@ cmp_eq_recursive(VALUE arg1, VALUE arg2, int recursive)
* Compares two objects based on the receiver's <code><=></code>
* method, returning true if it returns 0. Also returns true if
* _obj_ and _other_ are the same object.
- *
- * Even if _obj_ <=> _other_ raised an exception, the exception
- * is ignored and returns false.
*/
static VALUE