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/range.c | |
| parent | 29a87ff325b5d9682593d66bd17964e5c2447510 (diff) | |
Use Text("...") literal constructor instead of Text$from_str("...")
function call.
Diffstat (limited to 'builtins/range.c')
| -rw-r--r-- | builtins/range.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)", |
