mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
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.
This commit is contained in:
parent
fdb8870852
commit
973b440561
@ -38,7 +38,7 @@
|
||||
//! return,
|
||||
//! } ++ "): ";
|
||||
//!
|
||||
//! const prefix = "[" ++ level.asText() ++ "] " ++ scope_prefix;
|
||||
//! const prefix = "[" ++ comptime level.asText() ++ "] " ++ scope_prefix;
|
||||
//!
|
||||
//! // Print the message to stderr, silently ignoring any errors
|
||||
//! std.debug.getStderrMutex().lock();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user