From bc2981ee8fa3cba0be0d0efb1e2a2072c98ca5a0 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 17 Dec 2020 07:55:59 +0100 Subject: API change: Reverted back to original name used for .val in iterators to .ref --- examples/mapmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/mapmap.c') diff --git a/examples/mapmap.c b/examples/mapmap.c index 2ee46e8f..1128387d 100644 --- a/examples/mapmap.c +++ b/examples/mapmap.c @@ -19,8 +19,8 @@ int main(void) { cmap_str_put(&cmap_cfg_emplace(&config, "group", init).first->second, "proj2", "Wind"); // Update c_foreach (i, cmap_cfg, config) - c_foreach (j, cmap_str, i.val->second) - printf("%s: %s - %s (%u)\n", i.val->first.str, j.val->first.str, j.val->second.str, i.val->second.bucket_count); + c_foreach (j, cmap_str, i.ref->second) + printf("%s: %s - %s (%u)\n", i.ref->first.str, j.ref->first.str, j.ref->second.str, i.ref->second.bucket_count); cmap_cfg_del(&config); } \ No newline at end of file -- cgit v1.2.3