Skip to content

Commit

Permalink
.chop accepting number of chars to remove
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Apr 23, 2015
1 parent dd31858 commit 0f49a85
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions S32-setting-library/Str.pod
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ The following are all provided by the C<Str> role:

=item chop

multi method chop ( Str $string: --> Str ) is export
multi method chop(Str $string: $n = 1 --> Str ) is export

Returns string with one Char removed from the end.
Returns string with an optional number of characters removed from the end.
Defaults to removing one character.

=item chomp

Expand Down

0 comments on commit 0f49a85

Please sign in to comment.