aboutsummaryrefslogtreecommitdiff
path: root/lib/std/log.zig
diff options
context:
space:
mode:
authorandrewkraevskii <andrew.kraevskii@gmail.com>2025-09-12 21:25:48 +0300
committerAndrew Kelley <andrew@ziglang.org>2025-09-18 22:39:33 -0700
commitde489031d873193ca94de1292828c00a02e3b3ea (patch)
tree2a9e8a8e5e0b78311005d455d81e8bd2f0845b6e /lib/std/log.zig
parent37ecaae6390d238dce21ef4b97e6994dd229c2c3 (diff)
downloadzig-de489031d873193ca94de1292828c00a02e3b3ea.tar.gz
zig-de489031d873193ca94de1292828c00a02e3b3ea.zip
Remove usages of deprecatedWriter
Diffstat (limited to 'lib/std/log.zig')
-rw-r--r--lib/std/log.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/log.zig b/lib/std/log.zig
index ca3896e2da..113831e462 100644
--- a/lib/std/log.zig
+++ b/lib/std/log.zig
@@ -47,8 +47,8 @@
//! // Print the message to stderr, silently ignoring any errors
//! std.debug.lockStdErr();
//! defer std.debug.unlockStdErr();
-//! const stderr = std.fs.File.stderr().deprecatedWriter();
-//! nosuspend stderr.print(prefix ++ format ++ "\n", args) catch return;
+//! var stderr = std.fs.File.stderr().writer(&.{});
+//! nosuspend stderr.interface.print(prefix ++ format ++ "\n", args) catch return;
//! }
//!
//! pub fn main() void {