patch_Comparable.txt

Makoto Kishimoto, 02/06/2013 02:11 PM

Download (432 Bytes)

 
1
diff --git a/compar.c b/compar.c
2
index 65def78..7615bde 100644
3
--- a/compar.c
4
+++ b/compar.c
5
@@ -54,6 +54,9 @@ cmp_failed(void)
6
  *  Compares two objects based on the receiver's <code><=></code>
7
  *  method, returning true if it returns 0. Also returns true if
8
  *  _obj_ and _other_ are the same object.
9
+ *
10
+ *  Even if _obj_ <=> _other_ raised an exception, the exception
11
+ *  is ignoread and returns false.
12
  */
13
 
14
 static VALUE