Skip to content

Commit 875caab

Browse files
isidroasCjkjvfnby
andauthored
improve comment about falsy item
Co-authored-by: Andrey <Cjkjvfnby@gmail.com>
1 parent 6354304 commit 875caab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/hashing/hash_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def _try_set(self, ind: int, key: KEY, val: VAL) -> bool:
7676
"""
7777
stored = self._buckets[ind]
7878
if not stored:
79-
# A falsy item means that is None (bucket never used) or _deleted.
79+
# A falsy item means that bucket was never used (None) or was deleted (_deleted).
8080
self._buckets[ind] = _Item(key, val)
8181
self._len += 1
8282
return True

0 commit comments

Comments
 (0)