summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/replace.c')
-rw-r--r--misc/examples/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/replace.c b/misc/examples/replace.c
index ca305ecd..15cf3bae 100644
--- a/misc/examples/replace.c
+++ b/misc/examples/replace.c
@@ -11,7 +11,7 @@ int main ()
// Ustring positions: 0123456789*123456789*12345
cstr s = cstr_from(base); // "this is a test string."
cstr m = cstr_clone(s);
- c_DEFER (cstr_drop(&s), cstr_drop(&m)) {
+ c_defer (cstr_drop(&s), cstr_drop(&m)) {
cstr_append(&m, cstr_str(&m));
cstr_append(&m, cstr_str(&m));
printf("%s\n", cstr_str(&m));