From 1fa983fbedac70e8f3d19d278921df8c4be323d4 Mon Sep 17 00:00:00 2001 From: Carsten Cordes Date: Thu, 24 Aug 2017 19:21:03 +0200 Subject: [PATCH] Added Spaces between comparisons --- 05-methods/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;