summaryrefslogtreecommitdiffhomepage
path: root/examples/demos.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/demos.c')
-rw-r--r--examples/demos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demos.c b/examples/demos.c
index 052c4e32..cd715d46 100644
--- a/examples/demos.c
+++ b/examples/demos.c
@@ -19,7 +19,7 @@ void stringdemo1()
cstr_take(&cs, cstr_from_fmt("%s *** %s", cstr_str(&cs), cstr_str(&cs)));
printf("%s.\n", cstr_str(&cs));
- printf("find \"four\": %s\n", cstr_str(&cs) + cstr_find(cs, "four"));
+ printf("find \"four\": %s\n", cstr_str(&cs) + cstr_find(&cs, "four"));
// reassign:
cstr_assign(&cs, "one two three four five six seven");