aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-06-02 18:43:27 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-06-17 02:14:52 +0200
commit8e5393a779ee115846821e28bdb47affdf158992 (patch)
tree037257b8e9b3c260a31365104368f9ba4aa1e1e9 /lib/std/debug.zig
parent0bd067d19a434a5c7fd04d816d131cd593bdc1bf (diff)
downloadzig-8e5393a779ee115846821e28bdb47affdf158992.tar.gz
zig-8e5393a779ee115846821e28bdb47affdf158992.zip
Deprecate std.debug.warn
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 591f2d1a80..f3c2cf3b31 100644
--- 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();