From ccb08cd06df7ef08892584a96678f14ca163f98d Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylo-work@users.noreply.github.com> Date: Mon, 16 Mar 2020 18:48:04 +0100 Subject: Update EXAMPLE.md --- EXAMPLE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EXAMPLE.md b/EXAMPLE.md index b49c71f3..fb34c51c 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_compare, person_hash, person_destroy); int main() -- cgit v1.2.3