ruby-changes:13897
From: marcandre <ko1@a...>
Date: Mon, 9 Nov 2009 15:50:50 +0900 (JST)
Subject: [ruby-changes:13897] Ruby:r25699 (trunk): * string.c (rb_str_each_line): rdoc fix
marcandre 2009-11-09 15:50:29 +0900 (Mon, 09 Nov 2009) New Revision: 25699 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25699 Log: * string.c (rb_str_each_line): rdoc fix * ext/bigdecimal/bigdecimal.c (#infinite?, #nonzero?): rdoc fix Modified files: trunk/ext/bigdecimal/bigdecimal.c trunk/string.c Index: string.c =================================================================== --- string.c (revision 25698) +++ string.c (revision 25699) @@ -5635,11 +5635,11 @@ * 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> * Index: ext/bigdecimal/bigdecimal.c =================================================================== --- ext/bigdecimal/bigdecimal.c (revision 25698) +++ ext/bigdecimal/bigdecimal.c (revision 25699) @@ -439,7 +439,9 @@ return Qfalse; } -/* Returns True if the value is infinite */ +/* Returns nil, , or +1 depending on whether the value is finite, + * -infinity, or +infinity. + */ static VALUE BigDecimal_IsInfinite(VALUE self) { @@ -755,7 +757,7 @@ 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/