object.c: [DOC] merge rdoc
* gc.c (rb_obj_id): remove unused rdoc. * object.c (rb_obj_hash): [DOC] merge unused rdoc from rb_obj_id() in gc.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1784c9a009
commit
1b9ff04f65
17
gc.c
17
gc.c
@ -2362,23 +2362,6 @@ id2ref(VALUE obj, VALUE objid)
|
|||||||
* "hi".freeze.object_id == "hi".freeze.object_id # => true
|
* "hi".freeze.object_id == "hi".freeze.object_id # => true
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* call-seq:
|
|
||||||
* obj.hash -> fixnum
|
|
||||||
*
|
|
||||||
* Generates a Fixnum hash value for this object.
|
|
||||||
*
|
|
||||||
* This function must have the property that <code>a.eql?(b)</code> implies
|
|
||||||
* <code>a.hash == b.hash</code>.
|
|
||||||
*
|
|
||||||
* The hash value is used by Hash class.
|
|
||||||
*
|
|
||||||
* Any hash value that exceeds the capacity of a Fixnum will be truncated
|
|
||||||
* before being used.
|
|
||||||
*
|
|
||||||
* See also Object#hash.
|
|
||||||
*/
|
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_obj_id(VALUE obj)
|
rb_obj_id(VALUE obj)
|
||||||
{
|
{
|
||||||
|
3
object.c
3
object.c
@ -146,6 +146,9 @@ rb_obj_equal(VALUE obj1, VALUE obj2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
* call-seq:
|
||||||
|
* obj.hash -> fixnum
|
||||||
|
*
|
||||||
* Generates a Fixnum hash value for this object. This function must have the
|
* Generates a Fixnum hash value for this object. This function must have the
|
||||||
* property that <code>a.eql?(b)</code> implies <code>a.hash == b.hash</code>.
|
* property that <code>a.eql?(b)</code> implies <code>a.hash == b.hash</code>.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user