From 2e1a3725c790276ef4274599c16aea0ab85145b4 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 26 Mar 2018 00:02:20 +0000 Subject: Update Complex#infinite? documenation to state what it really does. [Fix GH-1848] From: Christian Bruckmayer git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- complex.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'complex.c') diff --git a/complex.c b/complex.c index c6daefdb99..7400dea5d2 100644 --- a/complex.c +++ b/complex.c @@ -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: * -- cgit v1.2.3