summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 17:42:37 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-21 17:42:37 +0000
commitbe23c5b70229c51d034b51c483af85aded7fe911 (patch)
tree8ac01970396a5ffed1f26f9a246ffefc0e1bea43 /ext
parent1ec8f6711d157de78dfd6f3622a80edb8808bdd7 (diff)
downloadruby-be23c5b70229c51d034b51c483af85aded7fe911.tar.gz
ruby-be23c5b70229c51d034b51c483af85aded7fe911.tar.xz
ruby-be23c5b70229c51d034b51c483af85aded7fe911.zip
* ext/bigdecimal/bigdecimal.c (BigDecimal_remainder): Doc fix [ruby-core:18796]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/bigdecimal.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index de18b8378..97d1822e0 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -1148,10 +1148,7 @@ BigDecimal_divremain(VALUE self, VALUE r, Real **dv, Real **rv)
/* Returns the remainder from dividing by the value.
*
- * If the values divided are of the same sign, the remainder is the same as
- * the modulus (see divmod).
- *
- * Otherwise, the remainder is the modulus minus the value divided by.
+ * x.remainder(y) means x-y*(x/y).truncate
*/
static VALUE
BigDecimal_remainder(VALUE self, VALUE r) /* remainder */