summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/demos.c2
-rw-r--r--examples/utf8replace_c.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/demos.c b/examples/demos.c
index 04d579db..7c5b9a4b 100644
--- a/examples/demos.c
+++ b/examples/demos.c
@@ -13,7 +13,7 @@ void stringdemo1()
cstr_erase_n(&cs, 7, 5); // -nine
printf("%s.\n", cstr_str(&cs));
- cstr_replace(&cs, 0, "seven", "four");
+ cstr_replace(&cs, "seven", "four");
printf("%s.\n", cstr_str(&cs));
cstr_take(&cs, cstr_from_fmt("%s *** %s", cstr_str(&cs), cstr_str(&cs)));
diff --git a/examples/utf8replace_c.c b/examples/utf8replace_c.c
index 27f33761..c38b37e4 100644
--- a/examples/utf8replace_c.c
+++ b/examples/utf8replace_c.c
@@ -13,7 +13,7 @@ int main() {
);
printf("%s\n", cstr_str(&hello));
- cstr_replace(&hello, 0, "🐨", "ø");
+ cstr_replace(&hello, "🐨", "ø");
printf("%s\n", cstr_str(&hello));
c_foreach (c, cstr, hello)