From 28d641911bd0ed97f59bbf46ba5399995afee07d Mon Sep 17 00:00:00 2001 From: marcandre Date: Mon, 21 Sep 2009 17:46:59 +0000 Subject: * numeric.c: Fix doc for #remainder [ruby-core:18796] * ext/bigdecimal/bigdecimal.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index eb5657b494..991fe977f5 100644 --- a/numeric.c +++ b/numeric.c @@ -366,11 +366,9 @@ num_modulo(x, y) * call-seq: * num.remainder(numeric) => result * - * If num and numeric have different signs, returns - * mod-numeric; otherwise, returns mod. In - * both cases mod is the value - * num.modulo(numeric). The - * differences between remainder and modulo + * x.remainder(y) means x-y*(x/y).truncate. + * + * The differences between remainder and modulo * (%) are shown in the table under Numeric#divmod. */ -- cgit v1.2.3