From 3d8deb6e1b0af723d1028131c2b8238f4b69f4e1 Mon Sep 17 00:00:00 2001 From: charliesome Date: Thu, 4 Jul 2013 13:31:11 +0000 Subject: * object.c (rb_obj_equal): Fixed an rb_obj_equal documentation typo where "a" was used instead of "obj". Fixes GH-349. Patch by @adnandoric git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'object.c') diff --git a/object.c b/object.c index d226dbf858..23dbbf4d10 100644 --- a/object.c +++ b/object.c @@ -121,9 +121,9 @@ rb_eql(VALUE obj1, VALUE obj2) * obj = "a" * other = obj.dup * - * a == other #=> true - * a.equal? other #=> false - * a.equal? a #=> true + * obj == other #=> true + * obj.equal? other #=> false + * obj.equal? obj #=> true * * The eql? method returns true if +obj+ and * +other+ refer to the same hash key. This is used by Hash to test members -- cgit v1.2.3