Author: lwall
Date: 2010-07-08 03:37:15 +0200 (Thu, 08 Jul 2010)
New Revision: 31573

Modified:
   docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
[Str] limits should default to Inf rather than * since that is (supposedly) 
compatible with Int


Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Str.pod 2010-07-07 23:45:31 UTC (rev 
31572)
+++ docs/Perl6/Spec/S32-setting-library/Str.pod 2010-07-08 01:37:15 UTC (rev 
31573)
@@ -339,10 +339,10 @@
 =item split
 X<split>
 
- our List multi split ( Str $delimiter, Str $input, Int $limit = * )
- our List multi split ( Regex $delimiter, Str $input, Int $limit = * )
- our List multi method split ( Str $input: Str $delimiter, Int $limit = * )
- our List multi method split ( Str $input: Regex $delimiter, Int $limit = *, 
Bool :$all = False)
+ our List multi split ( Str $delimiter, Str $input, Int $limit = Inf )
+ our List multi split ( Regex $delimiter, Str $input, Int $limit = Inf )
+ our List multi method split ( Str $input: Str $delimiter, Int $limit = Inf )
+ our List multi method split ( Str $input: Regex $delimiter, Int $limit = Inf, 
Bool :$all = False)
 
 Splits a string up into pieces based on delimiters found in the string.
 
@@ -371,8 +371,8 @@
 
 =item comb
 
- our List multi comb ( Regex $matcher, Str $input, Int $limit = * )
- our List multi method comb ( Str $input: Regex $matcher = /./, Int $limit = * 
)
+ our List multi comb ( Regex $matcher, Str $input, Int $limit = Inf )
+ our List multi method comb ( Str $input: Regex $matcher = /./, Int $limit = 
Inf )
 
 The C<comb> function looks through a string for the interesting bits,
 ignoring the parts that don't match.  In other words, it's a version
@@ -404,14 +404,14 @@
 
 =item lines
 
- our List multi method lines ( Str $input: Int $limit = * ) is export
+ our List multi method lines ( Str $input: Int $limit = Inf ) is export
 
 Returns a list of lines, i.e. the same as a call to
 C<$input.comb( / \N*\n | \N+$ /, $limit )> would.
 
 =item words
 
- our List multi method words ( Str $input: Int $limit = * ) is export
+ our List multi method words ( Str $input: Int $limit = Inf ) is export
 
 Returns a list of non-whitespace bits, i.e. the same as a call to
 C<$input.comb( / \S+ /, $limit )> would.

Reply via email to