zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 33c4ad7f3a79aad5d7ea481ac98b42dc9f469076 (tree)
parent 3ab4d112e001398e6ba60a0497ecf9265d49f157
Author: John Burton <john.burton@jbmail.com>
Date:   Sun, 18 Oct 2020 20:12:23 +0100

Add missing std in dump function json.zig

Add missing std to use of std.io.getStdErr in the function dump
so that it compiles.

Diffstat:
Mlib/std/json.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/json.zig b/lib/std/json.zig @@ -1293,7 +1293,7 @@ pub const Value = union(enum) { var held = std.debug.getStderrMutex().acquire(); defer held.release(); - const stderr = io.getStdErr().writer(); + const stderr = std.io.getStdErr().writer(); std.json.stringify(self, std.json.StringifyOptions{ .whitespace = null }, stderr) catch return; } };