srctree

Techatrix parent 65a87ff2 556db2ca
json: make std.json.stringifyAlloc return a mutable slice (#19013)

inlinesplit
lib/std/json/stringify.zig added: 2, removed: 2, total 0
@@ -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());