commit 8e5393a779ee115846821e28bdb47affdf158992 (tree) parent 0bd067d19a434a5c7fd04d816d131cd593bdc1bf Author: Isaac Freund <ifreund@ifreund.xyz> Date: Tue, 2 Jun 2020 18:43:27 +0200 Deprecate std.debug.warn Diffstat:
| M | lib/std/debug.zig | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/std/debug.zig b/lib/std/debug.zig @@ -52,8 +52,7 @@ pub const LineInfo = struct { var stderr_mutex = std.Mutex.init(); -/// Tries to write to stderr, unbuffered, and ignores any error returned. -/// Does not append a newline. +/// Deprecated. Use `std.log` functions for logging. pub fn warn(comptime fmt: []const u8, args: var) void { const held = stderr_mutex.acquire(); defer held.release();