summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-20 05:13:39 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-20 05:13:39 +0000
commitb88a5027b86d8bfd8a0892588322e1083e9caa1d (patch)
tree617eb0bab002985538802a2f4e2221459989f87f /object.c
parentfedc3756fb6d311f9ddaa0714192f5c5b0fcf542 (diff)
Add rdoc about Kernel#<=> [ruby-core:31770]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r--object.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/object.c b/object.c
index 0eb766846b..aa203dd892 100644
--- a/object.c
+++ b/object.c
@@ -1160,7 +1160,12 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
}
-/* :nodoc: */
+/*
+ * call-seq:
+ * obj <=> other -> 0 or nil
+ *
+ * Returns 0 if obj === other, otherwise nil.
+ */
static VALUE
rb_obj_cmp(VALUE obj1, VALUE obj2)
{