aboutsummaryrefslogtreecommitdiffstats
path: root/numeric.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-12-26 10:48:48 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-12-26 10:48:48 -0500
commit550a49c913f67aba8b89bccd8e4b3296a5c3f599 (patch)
treee17a45877c3d4f8229f7db17a28dadf989313e68 /numeric.c
parent3d31e914961e3b5a113072498c7f18261fbaf133 (diff)
downloadruby-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index d56cf18ff2..b1fe7e6274 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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.
*
*/