summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 19:02:42 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-21 19:02:42 +0100
commit5d37541d63b5c1454dd424eb6f0bc4465629dade (patch)
treedd3357a5931da12aace9eebfa7f1b343a3a6f8f7 /README.md
parentb5575596c187fe6d9143b9e08f5b1068ab01410f (diff)
downloadnonstd-5d37541d63b5c1454dd424eb6f0bc4465629dade.tar.gz
Cleanup and fixes
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index d56be50..0fd1aa4 100644
--- a/README.md
+++ b/README.md
@@ -158,10 +158,11 @@ if (content) {
FREE(content); // Standard free (unless using arena)
}
-// Or read directly into a string view or builder
-stringv file_sv = read_entire_file_sv("config.ini");
-// ... use file_sv ...
-FREE((void*)file_sv.data); // Note: read_entire_file_sv allocates the data
+// Or read directly into a string builder
+stringb file_sb = read_entire_file_sb("config.ini");
+// ... use file_sb ...
+sb_free(&file_sb);
+
```
## Testing