authorgravatar for 49736221+Kiyoshi364@users.noreply.github.comHashi364 <49736221+Kiyoshi364@users.noreply.github.com> 2022-08-30 18:07:23-03:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2022-08-31 16:01:35+03:00
log973b44056185132c1abc5bd5fb1c8c2c45d3d329
treeefbd912c0d144a0304aa7639533cf58bb1874b91
parentfdb88708527742e450e4c566024d9d50ce61dd8d

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 files changed, 1 insertions(+), 1 deletions(-)

lib/std/log.zig+1-1
...@@ -38,7 +38,7 @@...@@ -38,7 +38,7 @@
38//! return,38//! return,
39//! } ++ "): ";39//! } ++ "): ";
40//!40//!
41//! const prefix = "[" ++ level.asText() ++ "] " ++ scope_prefix;41//! const prefix = "[" ++ comptime level.asText() ++ "] " ++ scope_prefix;
42//!42//!
43//! // Print the message to stderr, silently ignoring any errors43//! // Print the message to stderr, silently ignoring any errors
44//! std.debug.getStderrMutex().lock();44//! std.debug.getStderrMutex().lock();