mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Module#<=> is not suitable for Comparable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
66ef9b9310
commit
8b129406c6
1 changed files with 1 additions and 1 deletions
2
object.c
2
object.c
|
@ -1629,7 +1629,7 @@ rb_mod_gt(VALUE mod, VALUE arg)
|
|||
*
|
||||
* 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.
|
||||
* +other_module+.
|
||||
*
|
||||
* Returns +nil+ if +module+ has no relationship with +other_module+, if
|
||||
* +other_module+ is not a module, or if the two values are incomparable.
|
||||
|
|
Loading…
Add table
Reference in a new issue