Skip to content

Commit 174ce08

Browse files
committed
syntax error in dict comprehension
1 parent 483a2a0 commit 174ce08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: data_structures/hashing/bloom_filter.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
3131
Not added elements should return False ...
3232
>>> not_present_films = ("The Goodfather", "Interstellar", "Parasite", "Pulp Fiction")
33-
>>> {film: bloom.format_hash(film) for film in not_present_films)}
34-
{'The Goodfather': '00011000', 'Interstellar': '00000011', 'Parasite': '00010010': 'Pulp Fiction': '10000100'}
33+
>>> {film: bloom.format_hash(film) for film in not_present_films}
34+
{'The Goodfather': '00011000', 'Interstellar': '00000011', 'Parasite': '00010010', 'Pulp Fiction': '10000100'}
3535
>>> any(film in bloom for film in not_present_films)
3636
False
3737

0 commit comments

Comments
 (0)