diff --git a/object.c b/object.c index 4e79a6ac7a..3c0e41dcee 100644 --- a/object.c +++ b/object.c @@ -1672,7 +1672,9 @@ rb_class_inherited_p(VALUE mod, VALUE arg) * mod < other -> true, false, or nil * * Returns true if mod is a subclass of other. Returns - * nil if there's no relationship between the two. + * false if mod is the same as other + * or mod is an ancestor of other. + * Returns nil if there's no relationship between the two. * (Think of the relationship in terms of the class definition: * "class A < B" implies "A < B".) * @@ -1713,7 +1715,9 @@ rb_mod_ge(VALUE mod, VALUE arg) * mod > other -> true, false, or nil * * Returns true if mod is an ancestor of other. Returns - * nil if there's no relationship between the two. + * false if mod is the same as other + * or mod is a descendant of other. + * Returns nil if there's no relationship between the two. * (Think of the relationship in terms of the class definition: * "class A < B" implies "B > A".) *