From 82849ba783e2b8f8e3a040751cd964313470e7f2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 3 Sep 2024 15:00:28 -0400 Subject: Use Text("...") literal constructor instead of Text$from_str("...") function call. --- builtins/thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtins/thread.c') diff --git a/builtins/thread.c b/builtins/thread.c index 793a0101..4f422e5d 100644 --- a/builtins/thread.c +++ b/builtins/thread.c @@ -43,7 +43,7 @@ Text_t Thread$as_text(const pthread_t **thread, bool colorize, const TypeInfo *t { (void)type; if (!thread) { - return Text$from_str(colorize ? "\x1b[34;1mThread\x1b[m" : "Thread"); + return colorize ? Text("\x1b[34;1mThread\x1b[m") : Text("Thread"); } return Text$format(colorize ? "\x1b[34;1mThread(%p)\x1b[m" : "Thread(%p)", *thread); } -- cgit v1.2.3