Update Complex#infinite? documenation

to state what it really does.

[Fix GH-1848]

From: Christian Bruckmayer <cbruckmayer@suse.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-03-26 00:02:20 +00:00
parent ba77b725da
commit 2e1a3725c7

View File

@ -1273,10 +1273,8 @@ rb_complex_finite_p(VALUE self)
* call-seq: * call-seq:
* cmp.infinite? -> nil or 1 * cmp.infinite? -> nil or 1
* *
* Returns values corresponding to the value of +cmp+'s magnitude: * Returns +1+ if +cmp+'s real or imaginary value is an infinite number,
* * otherwise returns +nil+.
* +finite+:: +nil+
* ++Infinity+:: ++1+
* *
* For example: * For example:
* *