diff options
| author | Tyge Løvset <[email protected]> | 2022-05-24 11:32:12 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-05-24 11:32:12 +0200 |
| commit | 966100106830f990bc3e1b40a5b5c39b64d5e9b0 (patch) | |
| tree | 3704a5317fedd54f86a95163c6f498c27f6f209f /examples/hashmap.c | |
| parent | 99bfc38c2517f1ee20db3d9553be177ae6c960c6 (diff) | |
| download | STC-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.c | 2 |
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("");
}
|
