Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove Index fossil
  • Loading branch information
lizmat committed Oct 17, 2015
1 parent eb42709 commit e6fcddd
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions S32-setting-library/Str.pod
Expand Up @@ -177,11 +177,10 @@ the other normalization forms, convert the C<Str> to the appropriate type first.
C<index> searches for the first occurrence of C<$substring> in C<$string>,
starting at C<$pos>.

If the substring is found, then the C<Index> returned represents the position
of the first character of the substring (which is True even if C<0>). If the
substring is not found, C<Nil> is returned. This really a kind of undefined
value. Do not evaluate it as a number, because that will assume <0> and
issue a warning.
If the substring is found, then the value returned represents the position
of the first character of the substring. If the substring is not found,
C<Nil> is returned. Do not evaluate it as a number, because that will
assume <0> and issue a warning.

[Note: if C<$substring> is not of the same string type as C<$string>, should
that cause an error, or should C<$substring> be converted to C<$string>'s type?]
Expand Down

0 comments on commit e6fcddd

Please sign in to comment.