aboutsummaryrefslogtreecommitdiffstats
path: root/object.c
diff options
context:
space:
mode:
authorcharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 13:31:11 +0000
committercharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-04 13:31:11 +0000
commit3d8deb6e1b0af723d1028131c2b8238f4b69f4e1 (patch)
tree07bab6a93be10f6e718884a688f2bbe74216c04d /object.c
parent2e44efd4d9d9d2956dff437c28dd099085158ad8 (diff)
downloadruby-3d8deb6e1b0af723d1028131c2b8238f4b69f4e1.tar.gz
* 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
Diffstat (limited to 'object.c')
-rw-r--r--object.c6
1 files changed, 3 insertions, 3 deletions
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 <code>eql?</code> method returns <code>true</code> if +obj+ and
* +other+ refer to the same hash key. This is used by Hash to test members