Skip to content

Commit

Permalink
Rename nucomp_false s nucomp_real_p_m
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed May 20, 2021
1 parent adcbae8 commit 63663bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions complex.c
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ rb_complex_conjugate(VALUE self)
* Returns false, even if the complex number has no imaginary part.
*/
static VALUE
nucomp_false(VALUE self)
nucomp_real_p_m(VALUE self)
{
return Qfalse;
}
Expand Down Expand Up @@ -2385,7 +2385,7 @@ Init_Complex(void)
rb_define_method(rb_cComplex, "conjugate", rb_complex_conjugate, 0);
rb_define_method(rb_cComplex, "conj", rb_complex_conjugate, 0);

rb_define_method(rb_cComplex, "real?", nucomp_false, 0);
rb_define_method(rb_cComplex, "real?", nucomp_real_p_m, 0);

rb_define_method(rb_cComplex, "numerator", nucomp_numerator, 0);
rb_define_method(rb_cComplex, "denominator", nucomp_denominator, 0);
Expand Down

0 comments on commit 63663bb

Please sign in to comment.