summaryrefslogtreecommitdiff
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2021-01-15 06:57:30 +0900
committerKenta Murata <mrkn@mrkn.jp>2021-01-22 14:07:32 +0900
commita1bb110b5614e676ba8ac3f24f7bfde9c82ea4f9 (patch)
tree41d4cd5869656a1d0edacf26e320d129fe19d17c /ext/bigdecimal
parent887a1bfbbc336cf4292d5489e7a7a234ad93478e (diff)
[ruby/bigdecimal] [Doc] Fix the comment of BigDecimal_div2 [ci skip]
https://github.com/ruby/bigdecimal/commit/a109d0984f
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/bigdecimal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 5821a0a..c553e1d 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -1636,7 +1636,8 @@ BigDecimal_divmod(VALUE self, VALUE r)
}
/*
- * See BigDecimal#quo
+ * Do the same manner as Float#div when n is nil.
+ * Do the same manner as BigDecimal#quo when n is 0.
*/
static inline VALUE
BigDecimal_div2(VALUE self, VALUE b, VALUE n)