1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c (rb_str_each_line): rdoc fix

* ext/bigdecimal/bigdecimal.c (#infinite?, #nonzero?): rdoc fix

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2009-11-09 06:50:29 +00:00
parent 68eb919442
commit 54b5ac5663
2 changed files with 7 additions and 5 deletions

View file

@ -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)
{

View file

@ -5635,11 +5635,11 @@ rb_str_split(VALUE str, const char *sep0)
* into paragraphs delimited by multiple successive newlines.
*
* print "Example one\n"
* "hello\nworld".each {|s| p s}
* "hello\nworld".each_line {|s| p s}
* print "Example two\n"
* "hello\nworld".each('l') {|s| p s}
* "hello\nworld".each_line('l') {|s| p s}
* print "Example three\n"
* "hello\n\n\nworld".each('') {|s| p s}
* "hello\n\n\nworld".each_line('') {|s| p s}
*
* <em>produces:</em>
*