aboutsummaryrefslogtreecommitdiff
path: root/string.h
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2025-07-23 14:42:48 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2025-07-23 14:42:48 +0200
commit034d197e7eb3749f9f5b347595abdcfe2d086965 (patch)
treeba1237cdf7f9a98c39cc79b647baf89221de48be /string.h
parentb997e31ac151679a516fd76da45bb36931a13e40 (diff)
fix(json): Reduce memory usage and fix memory bugs
Diffstat (limited to 'string.h')
-rw-r--r--string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.h b/string.h
index aed7945..a4c1e1a 100644
--- a/string.h
+++ b/string.h
@@ -15,6 +15,6 @@ typedef struct {
} Str;
i32 Str_equals(Str a, Str b);
u64 Str_hash64(Str s);
-Str *Str_copy(Arena *a, byte *data, size len);
+Str Str_copy(Arena *a, byte *data, size len);
i32 Str_fprint(FILE *w, Str s);
#endif