summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-26 00:02:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-26 00:02:19 +0000
commitba77b725da3065e89981b0c7a599db165cb0bd96 (patch)
tree17ebf07de906a37f958f1ab9d2097bee57c3b0b3 /complex.c
parentf28d6165f6e39c7723ad88bdf87708ddff5a145f (diff)
Update Complex#finite? documentation
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@62920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/complex.c b/complex.c
index bedc99f38e..c6daefdb99 100644
--- a/complex.c
+++ b/complex.c
@@ -1255,7 +1255,7 @@ nucomp_inspect(VALUE self)
* call-seq:
* cmp.finite? -> true or false
*
- * Returns +true+ if +cmp+'s magnitude is a finite number,
+ * Returns +true+ if +cmp+'s real and imaginary values are both finite numbers,
* otherwise returns +false+.
*/
static VALUE