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/books.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/books.c')
| -rw-r--r-- | examples/books.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/books.c b/examples/books.c index b35f5b36..b891388d 100644 --- a/examples/books.c +++ b/examples/books.c @@ -54,7 +54,7 @@ int main() // Iterate over everything.
c_forpair (book, review, cmap_str, book_reviews) {
- printf("%s: \"%s\"\n", cstr_str(&_.book), cstr_str(&_.review));
+ printf("%s: \"%s\"\n", cstr_str(_.book), cstr_str(_.review));
}
}
}
|
