Commit 556db2ca36

Techatrix <19954306+Techatrix@users.noreply.github.com>
2024-02-20 15:03:00
json: make std.json.stringifyAlloc return a mutable slice (#19013)
1 parent 65a87ff
Changed files (1)
lib
std
lib/std/json/stringify.zig
@@ -88,7 +88,7 @@ pub fn stringifyAlloc(
     allocator: Allocator,
     value: anytype,
     options: StringifyOptions,
-) error{OutOfMemory}![]const u8 {
+) error{OutOfMemory}![]u8 {
     var list = std.ArrayList(u8).init(allocator);
     errdefer list.deinit();
     try stringifyArbitraryDepth(allocator, value, options, list.writer());