From 62718867979d7722696e12ef7e266bf0378d2748 Mon Sep 17 00:00:00 2001 From: Hashi364 <49736221+Kiyoshi364@users.noreply.github.com> Date: Tue, 30 Aug 2022 18:07:23 -0300 Subject: [PATCH] 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. --- lib/std/log.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/log.zig b/lib/std/log.zig index 081344f2c8fb..e0e002d6001d 100644 --- a/lib/std/log.zig +++ b/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();