summaryrefslogtreecommitdiffhomepage
path: root/examples/replace.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/replace.c')
-rw-r--r--examples/replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/replace.c b/examples/replace.c
index 5c5192e2..53e916fc 100644
--- a/examples/replace.c
+++ b/examples/replace.c
@@ -11,7 +11,7 @@ int main ()
// replace signatures used in the same order as described above:
// Ustring positions: 0123456789*123456789*12345
- cstr_t s = cstr(base); // "this is a test string."
+ cstr_t s = cstr_from(base); // "this is a test string."
cstr_t m = cstr_clone(s);
cstr_append(&m, m.str);