summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/unordered_set.c
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2023-01-04 23:27:15 +0100
committerTyge Lovset <[email protected]>2023-01-04 23:27:15 +0100
commit1a98d0b660775f9a434197430905024519a0efbf (patch)
tree3799e91c8e362b8baabcfa7ad3303717a05c5ba2 /misc/examples/unordered_set.c
parent86c9f85d6c76084009f274977525163a47360885 (diff)
downloadSTC-modified-1a98d0b660775f9a434197430905024519a0efbf.tar.gz
STC-modified-1a98d0b660775f9a434197430905024519a0efbf.zip
Small examples enhancements.
Diffstat (limited to 'misc/examples/unordered_set.c')
-rw-r--r--misc/examples/unordered_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/unordered_set.c b/misc/examples/unordered_set.c
index 509f97e1..bf054b88 100644
--- a/misc/examples/unordered_set.c
+++ b/misc/examples/unordered_set.c
@@ -22,7 +22,7 @@ int main()
// find returns end iterator if key is not found,
// else it returns iterator to that key
- if (cset_str_find(&stringSet, key).ref == cset_str_end(&stringSet).ref)
+ if (cset_str_find(&stringSet, key).ref == NULL)
printf("\"%s\" not found\n", key);
else
printf("Found \"%s\"\n", key);