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

ruby-changes:21011

From: marcandre <ko1@a...>
Date: Thu, 25 Aug 2011 07:57:51 +0900 (JST)
Subject: [ruby-changes:21011] marcandRe: r33060 (trunk): * numeric.c: Rdoc fix

marcandre	2011-08-25 07:57:42 +0900 (Thu, 25 Aug 2011)

  New Revision: 33060

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33060

  Log:
    * numeric.c: Rdoc fix

  Modified files:
    trunk/numeric.c

Index: numeric.c
===================================================================
--- numeric.c	(revision 33059)
+++ numeric.c	(revision 33060)
@@ -1602,7 +1602,7 @@
  *     num.round([ndigits])  ->  integer or float
  *
  *  Rounds <i>num</i> to a given precision in decimal digits (default 0 digits).
- *  Precision may be negative.  Returns a floating point number when ndigits
+ *  Precision may be negative.  Returns a floating point number when <i>ndigits</i>
  *  is more than zero.  <code>Numeric</code> implements this by converting itself
  *  to a <code>Float</code> and invoking <code>Float#round</code>.
  */
@@ -2031,7 +2031,6 @@
  *     int.to_int    ->  integer
  *     int.floor     ->  integer
  *     int.ceil      ->  integer
- *     int.round     ->  integer
  *     int.truncate  ->  integer
  *
  *  As <i>int</i> is already an <code>Integer</code>, all these
@@ -3283,7 +3282,7 @@
 
 /*
  *  call-seq:
- *     num.round([ndigits])  ->  integer or float
+ *     int.round([ndigits])  ->  integer or float
  *
  *  Rounds <i>flt</i> to a given precision in decimal digits (default 0 digits).
  *  Precision may be negative.  Returns a floating point number when +ndigits+

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

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