Commit 973b440561

Hashi364 <49736221+Kiyoshi364@users.noreply.github.com>
2022-08-30 23:07:23
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
Changed files (1)
lib
lib/std/log.zig
@@ -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();