aboutsummaryrefslogtreecommitdiff
path: root/lib/std/json/stringify.zig
diff options
context:
space:
mode:
authorTechatrix <19954306+Techatrix@users.noreply.github.com>2024-02-20 15:03:00 +0100
committerGitHub <noreply@github.com>2024-02-20 09:03:00 -0500
commit556db2ca36afccd623d80b620139a1428c7b65fa (patch)
tree860752335c47d1fe92d48dc12b448852bb3d1041 /lib/std/json/stringify.zig
parent65a87ff299a364e7d8bab6256e0b05022f1a2620 (diff)
downloadzig-556db2ca36afccd623d80b620139a1428c7b65fa.tar.gz
zig-556db2ca36afccd623d80b620139a1428c7b65fa.zip
json: make std.json.stringifyAlloc return a mutable slice (#19013)
Diffstat (limited to 'lib/std/json/stringify.zig')
-rw-r--r--lib/std/json/stringify.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/json/stringify.zig b/lib/std/json/stringify.zig
index 37fd7efb17..add35e80bf 100644
--- a/lib/std/json/stringify.zig
+++ b/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());