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