summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authortomoya ishida <tomoyapenguin@gmail.com>2026-01-19 04:59:09 +0900
committerGitHub <noreply@github.com>2026-01-19 04:59:09 +0900
commitb536c6a849eb2e30ade30365eb4cfd17e0dcfb4a (patch)
tree33ee73095c81599ccac666e4c173024fd6f47b86 /complex.c
parent37c7ee536d88afbac4a9d8fba8d48717462502fd (diff)
[DOC] Remove _emphasis_ in code blocks which is not handled as emphasis anymore (#15901)
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/complex.c b/complex.c
index 7b6c6c2a99..85d724f273 100644
--- a/complex.c
+++ b/complex.c
@@ -1803,7 +1803,7 @@ rb_dbl_complex_new(double real, double imag)
* Complex.rect(1, Rational(0, 1)).to_i # => 1
*
* Raises RangeError if <tt>self.imag</tt> is not exactly zero
- * (either <tt>Integer(0)</tt> or <tt>Rational(0, _n_)</tt>).
+ * (either <tt>Integer(0)</tt> or <tt>Rational(0, n)</tt>).
*/
static VALUE
nucomp_to_i(VALUE self)
@@ -1827,7 +1827,7 @@ nucomp_to_i(VALUE self)
* Complex.rect(1, Rational(0, 1)).to_f # => 1.0
*
* Raises RangeError if <tt>self.imag</tt> is not exactly zero
- * (either <tt>Integer(0)</tt> or <tt>Rational(0, _n_)</tt>).
+ * (either <tt>Integer(0)</tt> or <tt>Rational(0, n)</tt>).
*/
static VALUE
nucomp_to_f(VALUE self)
@@ -1852,7 +1852,7 @@ nucomp_to_f(VALUE self)
* Complex.rect(1, 0.0).to_r # => (1/1)
*
* Raises RangeError if <tt>self.imag</tt> is not exactly zero
- * (either <tt>Integer(0)</tt> or <tt>Rational(0, _n_)</tt>)
+ * (either <tt>Integer(0)</tt> or <tt>Rational(0, n)</tt>)
* and <tt>self.imag.to_r</tt> is not exactly zero.
*
* Related: Complex#rationalize.