diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 15:00:28 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 15:00:28 -0400 |
| commit | 82849ba783e2b8f8e3a040751cd964313470e7f2 (patch) | |
| tree | 89380c5026b4da43d88658a5acf4d2c656ead8fe /builtins/thread.c | |
| parent | 29a87ff325b5d9682593d66bd17964e5c2447510 (diff) | |
Use Text("...") literal constructor instead of Text$from_str("...")
function call.
Diffstat (limited to 'builtins/thread.c')
| -rw-r--r-- | builtins/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
