Permalink
Browse files

[S32::Str] substr is not rw anymore, but substr-rw is

  • Loading branch information...
1 parent 54584ca commit 34fddf7788493098ac569f1cea7f214ce1ea1f2c @moritz moritz committed Jun 9, 2012
Showing with 7 additions and 7 deletions.
  1. +7 −7 S32-setting-library/Str.pod
@@ -500,12 +500,12 @@ C<sprintf($format, $p.key, $p.value)>.
=item substr
- multi method substr (Str $string: StrPos $start, StrLen $length? --> Str ) is rw is export
- multi method substr (Str $string: StrPos $start, StrPos $end --> Str ) is rw is export
- multi method substr (Str $string: StrPos $start, Int $length --> Str ) is rw is export
- multi method substr (Str $string: Int $start, StrLen $length? --> Str ) is rw is export
- multi method substr (Str $string: Int $start, StrPos $end --> Str ) is rw is export
- multi method substr (Str $string: Int $start, Int $length --> Str ) is rw is export
+ multi method substr (Str $string: StrPos $start, StrLen $length? --> Str ) is export
+ multi method substr (Str $string: StrPos $start, StrPos $end --> Str ) is export
+ multi method substr (Str $string: StrPos $start, Int $length --> Str ) is export
+ multi method substr (Str $string: Int $start, StrLen $length? --> Str ) is export
+ multi method substr (Str $string: Int $start, StrPos $end --> Str ) is export
+ multi method substr (Str $string: Int $start, Int $length --> Str ) is export
C<substr> returns part of an existing string. You control what part by
passing a starting position and optionally either an end position or length.
@@ -530,7 +530,7 @@ this case the entire rest of the string is returned, whatever is available.
=item substr-rw
- multi sub substr-rw($s is rw, $from = 0; $chars = $s.chars - $from)
+ multi sub substr-rw($s is rw, $from = 0; $chars = $s.chars - $from) is rw
A version of C<substr> that returns a writable reference to a part of a
string variable:

0 comments on commit 34fddf7

Please sign in to comment.