From 23478e7036fe9fbee17263e52d5d8a37adce1c95 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 3 Mar 2024 18:16:33 -0500 Subject: Rename as_str -> as_text --- builtins/array.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'builtins/array.c') diff --git a/builtins/array.c b/builtins/array.c index 66060a71..ee583b5b 100644 --- a/builtins/array.c +++ b/builtins/array.c @@ -293,17 +293,17 @@ public bool Array__equal(const array_t *x, const array_t *y, const TypeInfo *typ return (Array__compare(x, y, type) == 0); } -public CORD Array__as_str(const array_t *arr, bool colorize, const TypeInfo *type) +public CORD Array__as_text(const array_t *arr, bool colorize, const TypeInfo *type) { if (!arr) - return CORD_all("[", generic_as_str(NULL, false, type->ArrayInfo.item), "]"); + return CORD_all("[", generic_as_text(NULL, false, type->ArrayInfo.item), "]"); const TypeInfo *item_type = type->ArrayInfo.item; CORD c = "["; for (int64_t i = 0; i < arr->length; i++) { if (i > 0) c = CORD_cat(c, ", "); - CORD item_cord = generic_as_str(arr->data + i*arr->stride, colorize, item_type); + CORD item_cord = generic_as_text(arr->data + i*arr->stride, colorize, item_type); c = CORD_cat(c, item_cord); } c = CORD_cat(c, "]"); -- cgit v1.2.3