diff --git a/05-methods/README.md b/05-methods/README.md index 33ad03b..569d5bd 100644 --- a/05-methods/README.md +++ b/05-methods/README.md @@ -80,7 +80,7 @@ void ht_delete(ht_hash_table* ht, const char* key) { ht_item* item = ht->items[index]; int i = 1; while (item != NULL) { - if (item!=&HT_DELETED_ITEM) { +        if (item != &HT_DELETED_ITEM) { if (strcmp(item->key, key) == 0) { ht_del_item(item); ht->items[index] = &HT_DELETED_ITEM; @@ -116,7 +116,7 @@ void ht_insert(ht_hash_table* ht, const char* key, const char* value) { char* ht_search(ht_hash_table* ht, const char* key) { // ... while (item != NULL) { - if (item!=&HT_DELETED_ITEM) { +        if (item != &HT_DELETED_ITEM) { if (strcmp(item->key, key) == 0) { return item->value; } @@ -142,7 +142,7 @@ the new item at its location. void ht_insert(ht_hash_table* ht, const char* key, const char* value) { // ... while (cur_item != NULL) { - if (cur_item!=&HT_DELETED_ITEM) { +        if (cur_item != &HT_DELETED_ITEM) { if (strcmp(cur_item->key, key) == 0) { ht_del_item(cur_item); ht->items[index] = item;