From 3d8deb6e1b0af723d1028131c2b8238f4b69f4e1 Mon Sep 17 00:00:00 2001 From: charliesome Date: Thu, 4 Jul 2013 13:31:11 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ object.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 287afe2339..fe84379fe8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Jul 4 22:31:00 2013 Charlie Somerville + + * 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 + Thu Jul 4 20:39:20 2013 Tanaka Akira * tool/make-snapshot: Exit with EXIT_FAILURE when it fails. 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