diff --git a/source/c04/p08_skip_first_part_of_iterable.rst b/source/c04/p08_skip_first_part_of_iterable.rst index f56697f..baa81d0 100644 --- a/source/c04/p08_skip_first_part_of_iterable.rst +++ b/source/c04/p08_skip_first_part_of_iterable.rst @@ -41,7 +41,7 @@ >>> from itertools import dropwhile >>> with open('/etc/passwd') as f: - ... for line in dropwhile(lambda line: not line.startswith('#'), f): + ... for line in dropwhile(lambda line: line.startswith('#'), f): ... print(line, end='') ... nobody:*:-2:-2:Unprivileged User:/var/empty:/usr/bin/false