aboutsummaryrefslogtreecommitdiff
path: root/builtins/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtins/array.c')
-rw-r--r--builtins/array.c6
1 files changed, 3 insertions, 3 deletions
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, "]");