summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/demos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demos.c b/examples/demos.c
index 331ef04f..d7097961 100644
--- a/examples/demos.c
+++ b/examples/demos.c
@@ -10,7 +10,7 @@ void stringdemo1()
cstr_insert(&cs, 3, "-two");
printf("%s.\n", cstr_str(&cs));
- cstr_erase_n(&cs, 7, 5); // -nine
+ cstr_erase(&cs, 7, 5); // -nine
printf("%s.\n", cstr_str(&cs));
cstr_replace(&cs, "seven", "four", 1);