Permalink
Browse files

Update doc/manual/strings.rst

strchr now returns 0 (instead of an error) when no matches are found.
  • Loading branch information...
1 parent 2c74873 commit 7715d4da6ced0e98653b9743ea024c403ea4256f @fpepin fpepin committed Aug 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/manual/strings.rst
View
@@ -487,7 +487,7 @@ You can search for the index of a particular character using the
5
julia> strchr("xylophone", 'z')
- char not found
+ 0
You can start the search for a character at a given offset by providing
a third argument:
@@ -501,7 +501,7 @@ a third argument:
7
julia> strchr("xylophone", 'o', 8)
- char not found
+ 0
Another handy string function is ``repeat``:

0 comments on commit 7715d4d

Please sign in to comment.