summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
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