Skip to content

Commit

Permalink
[S32::Str] substr is not rw anymore, but substr-rw is
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jun 9, 2012
1 parent 54584ca commit 34fddf7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions S32-setting-library/Str.pod
Expand Up @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit 34fddf7

Please sign in to comment.