mirror of
https://github.com/ziglang/zig.git
synced 2026-01-21 14:55:25 +00:00
json: make std.json.stringifyAlloc return a mutable slice (#19013)
This commit is contained in:
parent
65a87ff299
commit
556db2ca36
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user