summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorKouhei Yanagita <yanagi@shakenbu.org>2022-05-27 20:18:54 +0900
committerGitHub <noreply@github.com>2022-05-27 20:18:54 +0900
commit8b4d2a50148b9944dd2d1d2d6ebe7b09874ddfdd (patch)
treeeb4f90c4620efc42a1839a993061ec26b94a6b3d /numeric.c
parent6778d321a7fa0ec56e3e02b6f3739a035c7ef41a (diff)
downloadruby-8b4d2a50148b9944dd2d1d2d6ebe7b09874ddfdd.tar.gz
[DIC] Fix typo in documentation
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/numeric.c b/numeric.c
index 742d61e2d6..4e08c4767a 100644
--- a/numeric.c
+++ b/numeric.c
@@ -667,9 +667,9 @@ num_div(VALUE x, VALUE y)
*
* For \Rational +r+ and real number +n+, these expressions are equivalent:
*
- * c % n
- * c-n*(c/n).floor
- * c.divmod(n)[1]
+ * r % n
+ * r-n*(r/n).floor
+ * r.divmod(n)[1]
*
* See Numeric#divmod.
*