Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
correct method contains
  • Loading branch information
gfldex committed Jul 14, 2016
1 parent 558afc5 commit ccd7a92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/Type/Str.pod6
Expand Up @@ -546,10 +546,10 @@ Returns C<True> if the invocant is identical to or ends with C<$needle>.
=head2 method contains
multi method contains(Str:D: Str(Cool) $needle) returns True:D
multi method contains(Cool:D: Str(Cool) $needle, Cool $start?) returns True:D
Returns C<True> if the invocant contains the C<$needle> at any position within
the string.
the string. If $start is provided skip as many characters.
say "Hello, World".contains('hello'); # False
say "Hello, World".contains(','); # True
Expand Down

0 comments on commit ccd7a92

Please sign in to comment.