ruby-changes:50945
From: stomar <ko1@a...>
Date: Sun, 15 Apr 2018 01:43:48 +0900 (JST)
Subject: [ruby-changes:50945] stomar:r63152 (trunk): complex.c: improve docs for Complex#{finite?, infinite?}
stomar 2018-04-15 01:43:42 +0900 (Sun, 15 Apr 2018) New Revision: 63152 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63152 Log: complex.c: improve docs for Complex#{finite?,infinite?} * complex.c: [DOC] correct term "real value" to "real part", and same for imaginary part, in documentation for Complex#{finite?,infinite?}. Modified files: trunk/complex.c Index: complex.c =================================================================== --- complex.c (revision 63151) +++ complex.c (revision 63152) @@ -1255,7 +1255,7 @@ nucomp_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/complex.c#L1255 * call-seq: * cmp.finite? -> true or false * - * Returns +true+ if +cmp+'s real and imaginary values are both finite numbers, + * Returns +true+ if +cmp+'s real and imaginary parts are both finite numbers, * otherwise returns +false+. */ static VALUE @@ -1273,7 +1273,7 @@ rb_complex_finite_p(VALUE self) https://github.com/ruby/ruby/blob/trunk/complex.c#L1273 * call-seq: * cmp.infinite? -> nil or 1 * - * Returns +1+ if +cmp+'s real or imaginary value is an infinite number, + * Returns +1+ if +cmp+'s real or imaginary part is an infinite number, * otherwise returns +nil+. * * For example: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/