summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c8
1 files changed, 3 insertions, 5 deletions
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 <i>num</i> and <i>numeric</i> have different signs, returns
- * <em>mod</em>-<i>numeric</i>; otherwise, returns <em>mod</em>. In
- * both cases <em>mod</em> is the value
- * <i>num</i>.<code>modulo(</code><i>numeric</i><code>)</code>. The
- * differences between <code>remainder</code> and modulo
+ * <code>x.remainder(y)</code> means <code>x-y*(x/y).truncate.</code>
+ *
+ * The differences between <code>remainder</code> and modulo
* (<code>%</code>) are shown in the table under <code>Numeric#divmod</code>.
*/