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/range.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtins/range.c') diff --git a/builtins/range.c b/builtins/range.c index 9b5af8cd..362174b0 100644 --- a/builtins/range.c +++ b/builtins/range.c @@ -35,7 +35,7 @@ static bool Range$equal(const Range_t *x, const Range_t *y, const TypeInfo *type static Text_t Range$as_text(const Range_t *r, bool use_color, const TypeInfo *type) { (void)type; - if (!r) return Text$from_str("Range"); + if (!r) return Text("Range"); return Text$format(use_color ? "\x1b[0;1mRange\x1b[m(first=%r, last=%r, step=%r)" : "Range(first=%r, last=%r, step=%r)", -- cgit v1.2.3