Browse files

Merge pull request #3 from droe/master

khash: remove bogus kh_del() in example code
  • Loading branch information...
2 parents e8bf8d5 + c3686a8 commit 90c94a41304a4c0cfdb3b6fadb5105a1a3f84abe @attractivechaos committed Feb 11, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 khash.h
View
1 khash.h
@@ -33,7 +33,6 @@ int main() {
khiter_t k;
khash_t(32) *h = kh_init(32);
k = kh_put(32, h, 5, &ret);
- if (!ret) kh_del(32, h, k);
kh_value(h, k) = 10;
k = kh_get(32, h, 10);
is_missing = (k == kh_end(h));

0 comments on commit 90c94a4

Please sign in to comment.