aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 23dbbf4d10..082d2f4c6e 100644
--- a/object.c
+++ b/object.c
@@ -1357,7 +1357,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
* call-seq:
* obj <=> other -> 0 or nil
*
- * Returns 0 if obj === other, otherwise nil.
+ * Returns 0 if obj.equal?(other) or obj == other, otherwise nil.
*
* The <=> is used by various methods to compare objects, for example
* Enumerable#sort, Enumerable#max etc.