ruby-changes:71980
From: Kouhei <ko1@a...>
Date: Fri, 27 May 2022 20:19:22 +0900 (JST)
Subject: [ruby-changes:71980] 8b4d2a5014 (master): [DIC] Fix typo in documentation
https://git.ruby-lang.org/ruby.git/commit/?id=8b4d2a5014 From 8b4d2a50148b9944dd2d1d2d6ebe7b09874ddfdd Mon Sep 17 00:00:00 2001 From: Kouhei Yanagita <yanagi@s...> Date: Fri, 27 May 2022 20:18:54 +0900 Subject: [DIC] Fix typo in documentation --- numeric.c | 6 +++--- 1 file 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) https://github.com/ruby/ruby/blob/trunk/numeric.c#L667 * * 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. * -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/