From 9a3c68f32ed45fd7a175268c77e73610cf1210c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismael=20Venegas=20Castell=C3=B3?= Date: Thu, 25 Dec 2014 09:52:32 -0600 Subject: [PATCH] Correcting a typo. Should be `'o'` instead of `'0'`. --- doc/manual/strings.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/manual/strings.rst b/doc/manual/strings.rst index 0561953528d96..ffd5d8a5c5654 100644 --- a/doc/manual/strings.rst +++ b/doc/manual/strings.rst @@ -510,7 +510,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.