ruby-changes:46465
From: stomar <ko1@a...>
Date: Sat, 6 May 2017 16:18:53 +0900 (JST)
Subject: [ruby-changes:46465] stomar:r58581 (trunk): numeric.c: remove mention of Bignum from docs
stomar 2017-05-06 16:18:49 +0900 (Sat, 06 May 2017) New Revision: 58581 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58581 Log: numeric.c: remove mention of Bignum from docs * numeric.c: [DOC] remove mention of Bignum from Integer#{+,-,*,/}, the return type does not depend on magnitude anymore. Modified files: trunk/numeric.c Index: numeric.c =================================================================== --- numeric.c (revision 58580) +++ numeric.c (revision 58581) @@ -3466,8 +3466,8 @@ rb_int2str(VALUE x, int base) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3466 * call-seq: * int + numeric -> numeric_result * - * Performs addition: the class of the resulting object depends on the class of - * +numeric+ and on the magnitude of the result. It may return a Bignum. + * Performs addition: the class of the resulting object depends on + * the class of +numeric+. */ static VALUE @@ -3513,8 +3513,8 @@ rb_int_plus(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3513 * call-seq: * int - numeric -> numeric_result * - * Performs subtraction: the class of the resulting object depends on the class - * of +numeric+ and on the magnitude of the result. It may return a Bignum. + * Performs subtraction: the class of the resulting object depends on + * the class of +numeric+. */ static VALUE @@ -3557,9 +3557,8 @@ rb_int_minus(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3557 * call-seq: * int * numeric -> numeric_result * - * Performs multiplication: the class of the resulting object depends on the - * class of +numeric+ and on the magnitude of the result. It may return a - * Bignum. + * Performs multiplication: the class of the resulting object depends on + * the class of +numeric+. */ static VALUE @@ -3660,8 +3659,8 @@ rb_int_fdiv(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3659 * call-seq: * int / numeric -> numeric_result * - * Performs division: the class of the resulting object depends on the class of - * +numeric+ and on the magnitude of the result. It may return a Bignum. + * Performs division: the class of the resulting object depends on + * the class of +numeric+. */ static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/