ruby-changes:42779
From: akr <ko1@a...>
Date: Sat, 30 Apr 2016 21:08:44 +0900 (JST)
Subject: [ruby-changes:42779] akr:r54853 (trunk): [DOC]
akr 2016-04-30 22:05:22 +0900 (Sat, 30 Apr 2016) New Revision: 54853 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54853 Log: [DOC] Modified files: trunk/bignum.c trunk/numeric.c Index: numeric.c =================================================================== --- numeric.c (revision 54852) +++ numeric.c (revision 54853) @@ -3809,7 +3809,7 @@ int_equal(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/numeric.c#L3809 * call-seq: * int <=> numeric -> -1, 0, +1 or nil * - * Comparison---Returns +-1+, +0+, ++1+ or +nil+ depending on whether +fix+ is + * Comparison---Returns +-1+, +0+, ++1+ or +nil+ depending on whether +int+ is * less than, equal to, or greater than +numeric+. * * This is the basis for the tests in the Comparable module. Index: bignum.c =================================================================== --- bignum.c (revision 54852) +++ bignum.c (revision 54853) @@ -5350,18 +5350,6 @@ rb_integer_float_eq(VALUE x, VALUE y) https://github.com/ruby/ruby/blob/trunk/bignum.c#L5350 return rb_big_eq(x, y); } -/* - * call-seq: - * big <=> numeric -> -1, 0, +1 or nil - * - * Comparison---Returns -1, 0, or +1 depending on whether +big+ is - * less than, equal to, or greater than +numeric+. This is the - * basis for the tests in Comparable. - * - * +nil+ is returned if the two values are incomparable. - * - */ - VALUE rb_big_cmp(VALUE x, VALUE y) { @@ -6756,13 +6744,6 @@ rb_big_bit_length(VALUE big) https://github.com/ruby/ruby/blob/trunk/bignum.c#L6744 INTEGER_PACK_LSWORD_FIRST|INTEGER_PACK_NATIVE_BYTE_ORDER); } -/* - * call-seq: - * big.odd? -> true or false - * - * Returns <code>true</code> if <i>big</i> is an odd number. - */ - VALUE rb_big_odd_p(VALUE num) { @@ -6772,13 +6753,6 @@ rb_big_odd_p(VALUE num) https://github.com/ruby/ruby/blob/trunk/bignum.c#L6753 return Qfalse; } -/* - * call-seq: - * big.even? -> true or false - * - * Returns <code>true</code> if <i>big</i> is an even number. - */ - VALUE rb_big_even_p(VALUE num) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/