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:
Hashi364 2022-08-30 18:07:23 -03:00 committed by Veikka Tuominen
parent fdb8870852
commit 973b440561

View file

@ -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();