summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/new_smap.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/new_smap.c')
-rw-r--r--misc/examples/new_smap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/new_smap.c b/misc/examples/new_smap.c
index f930eba2..2eaae836 100644
--- a/misc/examples/new_smap.c
+++ b/misc/examples/new_smap.c
@@ -37,12 +37,12 @@ int point_cmp(const Point* a, const Point* b) {
int main()
{
- PMap pmap = c_make(PMap, {
+ PMap pmap = c_init(PMap, {
{{42, 14}, 1},
{{32, 94}, 2},
{{62, 81}, 3},
});
- SMap smap = c_make(SMap, {
+ SMap smap = c_init(SMap, {
{"Hello, friend", "this is the mapped value"},
{"The brown fox", "jumped"},
{"This is the time", "for all good things"},