summaryrefslogtreecommitdiffhomepage
path: root/examples/hashmap.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-05-24 11:32:12 +0200
committerTyge Løvset <[email protected]>2022-05-24 11:32:12 +0200
commit966100106830f990bc3e1b40a5b5c39b64d5e9b0 (patch)
tree3704a5317fedd54f86a95163c6f498c27f6f209f /examples/hashmap.c
parent99bfc38c2517f1ee20db3d9553be177ae6c960c6 (diff)
downloadSTC-modified-966100106830f990bc3e1b40a5b5c39b64d5e9b0.tar.gz
STC-modified-966100106830f990bc3e1b40a5b5c39b64d5e9b0.zip
Changed c_forpair(k, v, Map, map) so that k and v are pointers instead of values. This to make it consistent with c_foreach, c_apply, c_apply_arr.
Diffstat (limited to 'examples/hashmap.c')
-rw-r--r--examples/hashmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hashmap.c b/examples/hashmap.c
index e81a0405..f39a3904 100644
--- a/examples/hashmap.c
+++ b/examples/hashmap.c
@@ -41,7 +41,7 @@ int main(void) {
puts("");
c_forpair (contact, number, cmap_str, contacts) {
- printf("Calling %s: %s\n", cstr_str(&_.contact), call(cstr_str(&_.number)));
+ printf("Calling %s: %s\n", cstr_str(_.contact), call(cstr_str(_.number)));
}
puts("");
}