summaryrefslogtreecommitdiffhomepage
path: root/examples/share_ptr2.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-12-17 07:55:59 +0100
committerTyge Løvset <[email protected]>2020-12-17 07:55:59 +0100
commitbc2981ee8fa3cba0be0d0efb1e2a2072c98ca5a0 (patch)
tree2e848e43a77cf4507645d7b89231c9a726b3ec05 /examples/share_ptr2.c
parent214a2aa75d164d285661719131f54c71fa2f8e37 (diff)
downloadSTC-modified-bc2981ee8fa3cba0be0d0efb1e2a2072c98ca5a0.tar.gz
STC-modified-bc2981ee8fa3cba0be0d0efb1e2a2072c98ca5a0.zip
API change: Reverted back to original name used for .val in iterators to .ref
Diffstat (limited to 'examples/share_ptr2.c')
-rw-r--r--examples/share_ptr2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/share_ptr2.c b/examples/share_ptr2.c
index abb58705..65240969 100644
--- a/examples/share_ptr2.c
+++ b/examples/share_ptr2.c
@@ -25,6 +25,6 @@ int main() {
cstr_from_fmt("Last %d", (i * 9) % 10))));
}
c_foreach (i, cmap_ps, map)
- printf(" %d: %s\n", i.val->first, i.val->second.get->name.str);
+ printf(" %d: %s\n", i.ref->first, i.ref->second.get->name.str);
cmap_ps_del(&map);
} \ No newline at end of file