From b3d6fe336d7901d7489961ccbb33156ef47f241c Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 6 Oct 2013 11:41:36 +0200 Subject: [PATCH] Small logical fix in filter() example description. --- Doc/tutorial/datastructures.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index e6786cc0e2..28e6ad71b9 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -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 ... -- 2.50.1