mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
2e44efd4d9
commit
3d8deb6e1b
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
Thu Jul 4 22:31:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
|
||||
|
||||
* 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 <akr@fsij.org>
|
||||
|
||||
* tool/make-snapshot: Exit with EXIT_FAILURE when it fails.
|
||||
|
|
6
object.c
6
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
|
||||
|
|
Loading…
Reference in a new issue