summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-28 02:23:11 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-12-28 02:23:11 +0000
commitd5a39c0aa85a705fcf360a535a278aed9116f644 (patch)
tree8aef34e37c0e99aac218b6984082339f38f991e5 /proc.c
parentbab92f0fea521263964115339b7f395c38400ab0 (diff)
* proc.c (method_eq): fix the documentation to refer to owner.
[ruby-core:51105] [Bug #7613] * test/ruby/test_method.rb (test_alias_onwer): new test to confirm that `a == b' returns false if owners of a and b are different. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/proc.c b/proc.c
index 5b1313a468..c5122daed6 100644
--- a/proc.c
+++ b/proc.c
@@ -1023,7 +1023,8 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope)
* meth == other_meth -> true or false
*
* Two method objects are equal if they are bound to the same
- * object and refer to the same method definition.
+ * object and refer to the same method definition and their owners are the
+ * same class or module.
*/
static VALUE