Skip to content

Commit 973b440

Browse files
Kiyoshi364Vexu
authored andcommitted
Using comptime level.asText() in log example
Some recent change makes slice concatenation runtime (merge #12368), so the example needs to be explicitly made comptime.
1 parent fdb8870 commit 973b440

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/log.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
//! return,
3939
//! } ++ "): ";
4040
//!
41-
//! const prefix = "[" ++ level.asText() ++ "] " ++ scope_prefix;
41+
//! const prefix = "[" ++ comptime level.asText() ++ "] " ++ scope_prefix;
4242
//!
4343
//! // Print the message to stderr, silently ignoring any errors
4444
//! std.debug.getStderrMutex().lock();

0 commit comments

Comments
 (0)