Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct docs for trim-trailing()
  • Loading branch information
Paul Cochrane committed Apr 8, 2015
1 parent 4856456 commit 5ad5573
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Type/Cool.pod
Expand Up @@ -502,8 +502,8 @@ leading whitespace stripped.
method trim-trailing()
sub trim-trailing(Str(Cool))
Coerces the invocant (or in sub form, its argument) to L<Str|/type/Str>, and returns the string with both
leading and trailing whitespace stripped.
Coerces the invocant (or in sub form, its argument) to L<Str|/type/Str>, and
returns the string with trailing whitespace stripped.
my $stripped = ' abc '.trim-trailing;
say "<$stripped>"; # < abc>
Expand Down Expand Up @@ -784,3 +784,5 @@ EVAL
=end comment
=end pod

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit 5ad5573

Please sign in to comment.