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

ruby-changes:48968

From: stomar <ko1@a...>
Date: Sat, 9 Dec 2017 07:43:51 +0900 (JST)
Subject: [ruby-changes:48968] stomar:r61087 (trunk): bignum.c: [DOC] simplify comment

stomar	2017-12-09 07:43:47 +0900 (Sat, 09 Dec 2017)

  New Revision: 61087

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

  Log:
    bignum.c: [DOC] simplify comment

  Modified files:
    trunk/bignum.c
Index: bignum.c
===================================================================
--- bignum.c	(revision 61086)
+++ bignum.c	(revision 61087)
@@ -7033,8 +7033,8 @@ int_pow_tmp2(VALUE x, VALUE y, long mm, https://github.com/ruby/ruby/blob/trunk/bignum.c#L7033
  *
  * Returns (modular) exponentiation as:
  *
- *   a.pow(b)     #=>  same as a**b
- *   a.pow(b, m)  #=>  same as (a**b) % m, but doesn't make huge values as temporary
+ *   a.pow(b)     #=> same as a**b
+ *   a.pow(b, m)  #=> same as (a**b) % m, but avoids huge temporary values
  */
 VALUE
 rb_int_powm(int const argc, VALUE * const argv, VALUE const num)

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

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