diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-12-26 10:48:48 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-12-26 10:48:48 -0500 |
commit | 550a49c913f67aba8b89bccd8e4b3296a5c3f599 (patch) | |
tree | e17a45877c3d4f8229f7db17a28dadf989313e68 /numeric.c | |
parent | 3d31e914961e3b5a113072498c7f18261fbaf133 (diff) | |
download | ruby-550a49c913f67aba8b89bccd8e4b3296a5c3f599.tar.gz |
[DOC] Fix documentation for Numeric#eql?
+==+ does not format properly, so we should use <tt>==</tt> instead.
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. * */ |