From 1685d4cab04588df31b08f12127c6967f1ae5f7a Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylo-work@users.noreply.github.com> Date: Tue, 31 Mar 2020 09:49:07 +0200 Subject: Update EXAMPLE.md --- EXAMPLE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXAMPLE.md b/EXAMPLE.md index 48bc1cc1..de1160ce 100644 --- a/EXAMPLE.md +++ b/EXAMPLE.md @@ -10,7 +10,7 @@ The difficulty with the hash function is that if your key type consists of sever Assuming a key-type like this, and want string as value, we define the functions person_make(), person_destroy() and person_compare(): ``` -#include +#include struct Person { @@ -51,7 +51,7 @@ size_t person_hash(const struct Person* p, size_t ignore) { ``` With this in place, you can instantiate a CMap with Person => CString: ``` -#include +#include declare_CMap(ex, struct Person, CString, cstring_destroy, person_hash, person_compare, person_destroy); int main() -- cgit v1.2.3