summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-06-11 17:15:28 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-09-10 20:00:06 +0900
commite18bc14a05cba2a00fea1525b097530bd5362a9e (patch)
tree4d896f8b28c1141c82f7e3da9eca66a442e62966 /object.c
parent4912260b7050ce24c2fde345bc8ea206152e02aa (diff)
include/ruby/ruby.h: add doxygen
Must not be a bad idea to improve documents. [ci skip]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4815
Diffstat (limited to 'object.c')
-rw-r--r--object.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/object.c b/object.c
index 443f0d1779..81b9b12a7a 100644
--- a/object.c
+++ b/object.c
@@ -115,17 +115,6 @@ rb_obj_setup(VALUE obj, VALUE klass, VALUE type)
/* The default implementation of #=== is
* to call #== with the rb_equal() optimization. */
-/*!
- * This function is an optimized version of calling #==.
- * It checks equality between two objects by first doing a fast
- * identity check using using C's == (same as BasicObject#equal?).
- * If that check fails, it calls #== dynamically.
- * This optimization actually affects semantics,
- * because when #== returns false for the same object obj,
- * rb_equal(obj, obj) would still return true.
- * This happens for Float::NAN, where Float::NAN == Float::NAN
- * is false, but rb_equal(Float::NAN, Float::NAN) is true.
- */
VALUE
rb_equal(VALUE obj1, VALUE obj2)
{