Skip to content

Commit

Permalink
Correcting a typo.
Browse files Browse the repository at this point in the history
Should be `'o'` instead of `'0'`.
(cherry picked from commit 9a3c68f)
ref PR #9460
  • Loading branch information
Ismael-VC authored and tkelman committed Dec 26, 2014
1 parent 52da6b1 commit 1714a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/manual/strings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ contained in a string:
julia> contains("Xylophon", 'o')
ERROR: `contains` has no method matching contains(::ASCIIString, ::Char)

The last error is because ``'0'`` is a character literal, and :func:`contains`
The last error is because ``'o'`` is a character literal, and :func:`contains`
is a generic function that looks for subsequences. To look for an element in a
sequence, you must use the :func:`in` function instead.

Expand Down

0 comments on commit 1714a84

Please sign in to comment.