Fix misnamed hashmap function

This commit is contained in:
ISSOtm
2020-03-15 01:50:22 +01:00
parent 7ddbe44b21
commit 49bca8d588

View File

@@ -64,7 +64,7 @@ bool hash_AddElement(HashMap map, char const *key, void *element)
return newEntry->next != NULL; return newEntry->next != NULL;
} }
bool hash_DeleteElement(HashMap map, char const *key) bool hash_RemoveElement(HashMap map, char const *key)
{ {
HashType hashedKey = hash(key); HashType hashedKey = hash(key);
struct HashMapEntry **ptr = &map[(HalfHashType)hashedKey]; struct HashMapEntry **ptr = &map[(HalfHashType)hashedKey];