[前][次][番号順一覧][スレッド一覧]

ruby-changes:50743

From: nobu <ko1@a...>
Date: Mon, 26 Mar 2018 09:02:25 +0900 (JST)
Subject: [ruby-changes:50743] nobu:r62920 (trunk): Update Complex#finite? documentation

nobu	2018-03-26 09:02:19 +0900 (Mon, 26 Mar 2018)

  New Revision: 62920

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62920

  Log:
    Update Complex#finite? documentation
    
    to state what it really does.
    
    [Fix GH-1848]
    
    From: Christian Bruckmayer <cbruckmayer@s...>

  Modified files:
    trunk/complex.c
Index: complex.c
===================================================================
--- complex.c	(revision 62919)
+++ complex.c	(revision 62920)
@@ -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 magnitude is a finite number,
+ * Returns +true+ if +cmp+'s real and imaginary values are both finite numbers,
  * otherwise returns +false+.
  */
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]