pugs-comm...@feather.perl6.nl wrote:
Author: wayland
Date: 2009-02-27 10:19:30 +0100 (Fri, 27 Feb 2009)
New Revision: 25614

Modified:
   docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
Return type for subst


Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-02-27 08:29:42 UTC (rev 
25613)
+++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-02-27 09:19:30 UTC (rev 
25614)
@@ -509,7 +509,7 @@
=item subst - method subst(Str $self: Regex $search, Str $replacement);
+ method Str subst(Str $self: Regex $search, Str $replacement);
XXX Does this return a Match? A Str?

Both? (well, more like: what's requested)

Then this DWIMs:

   my Str $s = "some text" =~ s/some/another/;

--
Ruud

Reply via email to