aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--cm-demo.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index a07a78e..3c9c05a 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,7 @@ void default_dealloc(void* ptr, cm_u8* user) {
int main(void) {
// Create a map: string -> int (word frequency counter)
struct cheesemap map;
- cm_new_(&map, const char*, int, NULL, hash_string, compare_string,
+ cm_init_(&map, const char*, int, NULL, hash_string, compare_string,
default_alloc, default_dealloc);
// Count word frequencies
diff --git a/cm-demo.c b/cm-demo.c
index 0e9f82d..cdcf7bb 100644
--- a/cm-demo.c
+++ b/cm-demo.c
@@ -49,7 +49,7 @@ void default_dealloc(cm_u8* ptr, cm_u8* user) {
int main(void) {
// Create a map: string -> int (word frequency counter)
struct cheesemap map;
- cm_new_(&map, const char*, int, NULL, hash_string, compare_string,
+ cm_init_(&map, const char*, int, NULL, hash_string, compare_string,
default_alloc, default_dealloc);
// Count word frequencies