]> granicus.if.org Git - python/commitdiff
Small logical fix in filter() example description.
authorGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 09:41:36 +0000 (11:41 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 6 Oct 2013 09:41:36 +0000 (11:41 +0200)
Doc/tutorial/datastructures.rst

index e6786cc0e27a15037f2f68d8ad6b96263d6f9f60..28e6ad71b9545e5a2ebca9cfab53e44819c8ec19 100644 (file)
@@ -171,7 +171,7 @@ There are three built-in functions that are very useful when used with lists:
 the sequence for which ``function(item)`` is true. If *sequence* is a
 :class:`string` or :class:`tuple`, the result will be of the same type;
 otherwise, it is always a :class:`list`. For example, to compute a sequence of
-numbers not divisible by 2 and 3::
+numbers not divisible by 2 or 3::
 
    >>> def f(x): return x % 2 != 0 and x % 3 != 0
    ...