mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue