summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-09 06:50:55 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-09 06:50:55 +0000
commitaaee331c7ffce5bf704a717d1b7ae73564e2d59f (patch)
tree7c5303c696ddf0330abf927bde802ab3bb8c4038 /ext
parentc7c3ed45970aad38691f56eaee9caf0ee9ea4a57 (diff)
* ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): rdoc fix
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/bigdecimal/bigdecimal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index cbb70d3008..185a0799fc 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -506,7 +506,9 @@ BigDecimal_IsNaN(VALUE self)
return Qfalse;
}
-/* Returns True if the value is infinite */
+/* Returns nil, −1, or +1 depending on whether the value is finite,
+ * -infinity, or +infinity.
+ */
static VALUE
BigDecimal_IsInfinite(VALUE self)
{
@@ -773,7 +775,7 @@ BigDecimal_zero(VALUE self)
return VpIsZero(a) ? Qtrue : Qfalse;
}
-/* Returns True if the value is non-zero. */
+/* Returns self if the value is non-zero, nil otherwise. */
static VALUE
BigDecimal_nonzero(VALUE self)
{