From c19c8ef4aedadd52b9354188f36aa590ec319200 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 30 Apr 2016 13:05:22 +0000 Subject: [PATCH] [DOC] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bignum.c | 26 -------------------------- numeric.c | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/bignum.c b/bignum.c index 3c6a85a984..bb518d1a44 100644 --- a/bignum.c +++ b/bignum.c @@ -5350,18 +5350,6 @@ rb_integer_float_eq(VALUE x, VALUE y) 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) INTEGER_PACK_LSWORD_FIRST|INTEGER_PACK_NATIVE_BYTE_ORDER); } -/* - * call-seq: - * big.odd? -> true or false - * - * Returns true if big is an odd number. - */ - VALUE rb_big_odd_p(VALUE num) { @@ -6772,13 +6753,6 @@ rb_big_odd_p(VALUE num) return Qfalse; } -/* - * call-seq: - * big.even? -> true or false - * - * Returns true if big is an even number. - */ - VALUE rb_big_even_p(VALUE num) { diff --git a/numeric.c b/numeric.c index 15621ce96c..a357c3af3c 100644 --- a/numeric.c +++ b/numeric.c @@ -3809,7 +3809,7 @@ int_equal(VALUE x, VALUE y) * 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.