diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-09 06:50:29 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-09 06:50:29 +0000 |
commit | 5bf41d41ff9a9880edf6f20b7d21d9d344aa06f2 (patch) | |
tree | 8fbb0e52bfe98118981cfe84bb6c0dff8c1cf33a /ext | |
parent | dcb036b0a17665cbc09dcdcf03f61a2c856c3cf9 (diff) | |
download | ruby-5bf41d41ff9a9880edf6f20b7d21d9d344aa06f2.tar.gz ruby-5bf41d41ff9a9880edf6f20b7d21d9d344aa06f2.tar.xz ruby-5bf41d41ff9a9880edf6f20b7d21d9d344aa06f2.zip |
* string.c (rb_str_each_line): rdoc fix
* ext/bigdecimal/bigdecimal.c (#infinite?, #nonzero?): rdoc fix
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bigdecimal/bigdecimal.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c index 59a0cef15..f4c22b506 100644 --- a/ext/bigdecimal/bigdecimal.c +++ b/ext/bigdecimal/bigdecimal.c @@ -439,7 +439,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) { @@ -755,7 +757,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) { |