summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'object.c')
-rw-r--r--object.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/object.c b/object.c
index f4a28fd259..5e19eb30f1 100644
--- a/object.c
+++ b/object.c
@@ -97,14 +97,15 @@ rb_obj_equal(VALUE obj1, VALUE obj2)
return Qfalse;
}
-/*
- * Generates a <code>Fixnum</code> hash value for this object. This function must have the
- * property that a.eql?(b) implies a.hash <code>==</code> b.hash. The hash value is used by
- * class <code>Hash</code>. Any hash value that exceeds the capacity of a <code>Fixnum</code> will be
+/*
+ * Generates a <code>Fixnum</code> hash value for this object.
+ * This function must have the property that a.eql?(b) implies
+ * a.hash <code>==</code> b.hash.
+ * The hash value is used by class <code>Hash</code>.
+ * Any hash value that exceeds the capacity of a <code>Fixnum</code> will be
* truncated before being used.
*
- * "waffle" #=> "waffle"
- * "waffle".hash #=> -910576647
+ * "waffle".hash #=> -910576647
*/
VALUE
rb_obj_hash(VALUE obj)