summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-13 14:35:04 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-13 14:35:04 +0000
commit58f44c469eee4e4e2998b4cb8037c9f40396b11d (patch)
tree876610333153b3260345bd1ed5f9fa8dbae87c4d /object.c
parent6e3563c2150baa956d63ad85755a0a4d32ab3b5b (diff)
merge revision(s) 41854,41867:
* object.c: Fix rdoc for Kernel#<=>. [Fix GH-352] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@41947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/object.c b/object.c
index 30a3d936f6..f9c8f7e91b 100644
--- a/object.c
+++ b/object.c
@@ -1320,7 +1320,8 @@ 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+ and +other+ are the same object
+ * or <code>obj == other</code>, otherwise nil.
*
* The <=> is used by various methods to compare objects, for example
* Enumerable#sort, Enumerable#max etc.
@@ -1330,7 +1331,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
* 1 means self is bigger than other. Nil means the two values could not be
* compared.
*
- * When you defined <=>, you can include Comparable to gain the methods <=, <,
+ * When you define <=>, you can include Comparable to gain the methods <=, <,
* ==, >=, > and between?.
*/
static VALUE