[DOC] Fix documentation for Numeric#eql?

+==+ does not format properly, so we should use <tt>==</tt> instead.
This commit is contained in:
Peter Zhu 2023-12-26 10:48:48 -05:00
parent 3d31e91496
commit 550a49c913

View File

@ -1550,8 +1550,8 @@ rb_float_pow(VALUE x, VALUE y)
* 1.eql?(Rational(1, 1)) # => false
* 1.eql?(Complex(1, 0)) # => false
*
* \Method +eql?+ is different from +==+ in that +eql?+ requires matching types,
* while +==+ does not.
* \Method +eql?+ is different from <tt>==</tt> in that +eql?+ requires matching types,
* while <tt>==</tt> does not.
*
*/