summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/strings/utf8replace_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/strings/utf8replace_c.c')
-rw-r--r--misc/examples/strings/utf8replace_c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/strings/utf8replace_c.c b/misc/examples/strings/utf8replace_c.c
index 03a0442f..1d54486f 100644
--- a/misc/examples/strings/utf8replace_c.c
+++ b/misc/examples/strings/utf8replace_c.c
@@ -10,12 +10,12 @@ int main(void)
cstr_u8_replace_at(&hello,
cstr_u8_to_pos(&hello, 7),
1,
- c_ss("🐨")
+ c_sv("🐨")
);
printf("%s\n", cstr_str(&hello));
c_foreach (c, cstr, hello)
- printf("%.*s,", c_SS(c.u8.chr));
+ printf("%.*s,", c_SV(c.u8.chr));
cstr str = cstr_lit("scooby, dooby doo");
cstr_replace(&str, "oo", "00");