Skip to content

Commit

Permalink
[DOC] Fix documentation for Numeric#eql?
Browse files Browse the repository at this point in the history
+==+ does not format properly, so we should use <tt>==</tt> instead.
  • Loading branch information
peterzhu2118 committed Dec 26, 2023
1 parent 3d31e91 commit 550a49c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numeric.c
Expand Up @@ -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.
*
*/

Expand Down

0 comments on commit 550a49c

Please sign in to comment.