1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Rename nucomp_false s nucomp_real_p_m

This commit is contained in:
Nobuyoshi Nakada 2021-05-20 14:31:49 +09:00
parent adcbae8d49
commit 63663bb459
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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;
}
@ -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);