Skip to content

Commit 096619c

Browse files
Update datastructures/hashmap/hash_map.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent c8b6ea4 commit 096619c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

datastructures/hashmap/hash_map.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ def __hash_function(self, key: int) -> int:
2929

3030
def set(self, key: int, value: Any) -> None:
3131
"""
32-
Used to add an item to the HashMap/HashTable given it's unique Key and it's value. if the item is already in the
32+
Used to add an item to the HashMap/HashTable given its unique Key and its value. If the item is already in the
3333
HashMap, then an update to its value is performed.
34-
@param key: Key used to identify the item
35-
@param value: Represents the data of the Item
34+
`@param` key: Key used to identify the item
35+
`@param` value: Represents the data of the Item
3636
"""
3737
hash_key = self.__hash_function(key)
3838
self.buckets[hash_key].update(key, value)

0 commit comments

Comments
 (0)