summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorStefan Krah <stefan@bytereef.org>2010-04-01 10:34:09 (GMT)
committerStefan Krah <stefan@bytereef.org>2010-04-01 10:34:09 (GMT)
commitc8bdc01d82573ce95ab7fed8b9aab8b3b566fe03 (patch)
tree6bc016d1c726dd8cfcdbe5b37123ef67f521c505 /Doc/reference
parentedef05b0a3a50d177bbae95d211fea9d869b0ee9 (diff)
downloadcpython-c8bdc01d82573ce95ab7fed8b9aab8b3b566fe03.zip
cpython-c8bdc01d82573ce95ab7fed8b9aab8b3b566fe03.tar.gz
cpython-c8bdc01d82573ce95ab7fed8b9aab8b3b566fe03.tar.bz2
Fix typo in definition of 'in' keyword.
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/expressions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index 863c3ce..bb25956 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -1061,7 +1061,7 @@ in s`` returns the negation of ``x in s``. All built-in sequences and set types
support this as well as dictionary, for which :keyword:`in` tests whether a the
dictionary has a given key. For container types such as list, tuple, set,
frozenset, dict, or collections.deque, the expression ``x in y`` is equivalent
-to ``any(x is e or x == e for val e in y)``.
+to ``any(x is e or x == e for e in y)``.
For the string and bytes types, ``x in y`` is true if and only if *x* is a
substring of *y*. An equivalent test is ``y.find(x) != -1``. Empty strings are