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

ruby-changes:27010

From: marcandre <ko1@a...>
Date: Tue, 5 Feb 2013 14:39:25 +0900 (JST)
Subject: [ruby-changes:27010] marcandRe: r39062 (trunk): * numeric.c: Fix rdoc for Fixnum#**

marcandre	2013-02-05 14:39:16 +0900 (Tue, 05 Feb 2013)

  New Revision: 39062

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

  Log:
    * numeric.c: Fix rdoc for Fixnum#**

  Modified files:
    trunk/numeric.c

Index: numeric.c
===================================================================
--- numeric.c	(revision 39061)
+++ numeric.c	(revision 39062)
@@ -2939,7 +2939,7 @@ int_pow(long x, unsigned long y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L2939
  *  be negative or fractional.
  *
  *    2 ** 3      #=> 8
- *    2 ** -1     #=> 0.5
+ *    2 ** -1     #=> (1/2)
  *    2 ** 0.5    #=> 1.4142135623731
  */
 

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

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