summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gc.c17
-rw-r--r--object.c3
2 files changed, 3 insertions, 17 deletions
diff --git a/gc.c b/gc.c
index fdc388f..3b373be 100644
--- a/gc.c
+++ b/gc.c
@@ -2362,23 +2362,6 @@ id2ref(VALUE obj, VALUE objid)
* "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
rb_obj_id(VALUE obj)
{
diff --git a/object.c b/object.c
index 240b4f5..2fdbe4e 100644
--- a/object.c
+++ b/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
* property that <code>a.eql?(b)</code> implies <code>a.hash == b.hash</code>.
*