mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
ba77b725da
commit
2e1a3725c7
1 changed files with 2 additions and 4 deletions
|
@ -1273,10 +1273,8 @@ rb_complex_finite_p(VALUE self)
|
|||
* call-seq:
|
||||
* cmp.infinite? -> nil or 1
|
||||
*
|
||||
* Returns values corresponding to the value of +cmp+'s magnitude:
|
||||
*
|
||||
* +finite+:: +nil+
|
||||
* ++Infinity+:: ++1+
|
||||
* Returns +1+ if +cmp+'s real or imaginary value is an infinite number,
|
||||
* otherwise returns +nil+.
|
||||
*
|
||||
* For example:
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue