summaryrefslogtreecommitdiffhomepage
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/cstr_api.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md
index 0991a8c4..8dd1b397 100644
--- a/docs/cstr_api.md
+++ b/docs/cstr_api.md
@@ -84,7 +84,7 @@ bool cstr_getdelim(cstr *self, int delim, FILE *stream); // does no
```
#### UTF8 methods
-```
+```c
size_t cstr_size_u8(cstr s); // number of utf8 codepoints
size_t cstr_size_n_u8(cstr s, size_t nbytes); // utf8 size within n bytes
csview cstr_at(const cstr* self, size_t bytepos); // utf8 codepoints as a csview