aboutsummaryrefslogtreecommitdiff
path: root/lib/std/log.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2024-01-28 00:30:24 +0200
committerVeikka Tuominen <git@vexu.eu>2024-02-01 15:22:36 +0200
commit220d3264c929187cb72111fcf75a223f9e4a7399 (patch)
tree9eb71fb86133145d0b962074e13a00d043260bf1 /lib/std/log.zig
parent776cd673f206099012d789fd5d05d49dd72b9faa (diff)
downloadzig-220d3264c929187cb72111fcf75a223f9e4a7399.tar.gz
zig-220d3264c929187cb72111fcf75a223f9e4a7399.zip
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(