aboutsummaryrefslogtreecommitdiff
path: root/lib/std/log.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-09 13:38:42 -0800
committerGitHub <noreply@github.com>2024-02-09 13:38:42 -0800
commit54bbc73f8502fe073d385361ddb34a43d12eec39 (patch)
tree6eb554a4639f2c05bdfa5fc94553edc7f5df1650 /lib/std/log.zig
parentd3cf911a803912a5aabe7a8d130c8b6468b95ff1 (diff)
parent318e9cdaaae2f01c1a6e5db9cf66fe875821787e (diff)
downloadzig-54bbc73f8502fe073d385361ddb34a43d12eec39.tar.gz
zig-54bbc73f8502fe073d385361ddb34a43d12eec39.zip
Merge pull request #18712 from Vexu/std.options
std: make options a struct instance instead of a namespace
Diffstat (limited to 'lib/std/log.zig')
-rw-r--r--lib/std/log.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/log.zig b/lib/std/log.zig
index 1c5b60ff1a..5c4650cc1c 100644
--- a/lib/std/log.zig
+++ b/lib/std/log.zig
@@ -18,12 +18,12 @@
//! ```
//! const std = @import("std");
//!
-//! pub const std_options = struct {
+//! pub const std_options = .{
//! // Set the log level to info
-//! pub const log_level = .info;
+//! .log_level = .info,
//!
//! // Define logFn to override the std implementation
-//! pub const logFn = myLogFn;
+//! .logFn = myLogFn,
//! };
//!
//! pub fn myLogFn(