From 9fcf2f8f4b64d9badf3d0c35f9913ad897cf4394 Mon Sep 17 00:00:00 2001 From: nagachika Date: Sat, 9 Mar 2013 13:52:22 +0000 Subject: merge revision(s) 39418: * array.c: Document #<=> return values and formatting * bignum.c: ditto * file.c: ditto * object.c: ditto * numeric.c: ditto * rational.c: ditto * string.c: ditto * time.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@39666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index 76ff316543..3da19cdf3d 100644 --- a/object.c +++ b/object.c @@ -1540,13 +1540,14 @@ rb_mod_gt(VALUE mod, VALUE arg) /* * call-seq: - * mod <=> other_mod -> -1, 0, +1, or nil + * module <=> other_module -> -1, 0, +1, or nil * - * Comparison---Returns -1 if mod includes other_mod, 0 if - * mod is the same as other_mod, and +1 if mod is - * included by other_mod. Returns nil if mod - * has no relationship with other_mod or if other_mod is - * not a module. + * Comparison---Returns -1, 0, +1 or nil depending on whether +module+ + * includes +other_module+, they are the same, or if +module+ is included by + * +other_module+. This is the basis for the tests in Comparable. + * + * Returns +nil+ if +module+ has no relationship with +other_module+, if + * +other_module+ is not a module, or if the two values are incomparable. */ static VALUE -- cgit v1.2.3