summaryrefslogtreecommitdiffhomepage
path: root/examples/utf8replace_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/utf8replace_c.c')
-rw-r--r--examples/utf8replace_c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/utf8replace_c.c b/examples/utf8replace_c.c
index 35e6b8ef..22a5c990 100644
--- a/examples/utf8replace_c.c
+++ b/examples/utf8replace_c.c
@@ -4,7 +4,7 @@
int main() {
c_auto (cstr, hello, upper) {
- hello = cstr_new("hell😀 w😀rld");
+ hello = cstr_lit("hell😀 w😀rld");
printf("%s\n", cstr_str(&hello));
/* replace second smiley at utf8 codepoint pos 7 */