diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 17:44:17 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-02-17 17:44:17 -0500 |
| commit | 1dcfbdc5c79c26b0f5d5997bed755e93f47e2ec1 (patch) | |
| tree | d923e233ddcd0a53698e9c6a9b85fe5023327e1b /builtins/array.c | |
| parent | 1bcf6bdc9a2652366bc152a1d98524743623bdf5 (diff) | |
Rename 'cord' to 'as_str'
Diffstat (limited to 'builtins/array.c')
| -rw-r--r-- | builtins/array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/builtins/array.c b/builtins/array.c index 249281ce..e91b9809 100644 --- a/builtins/array.c +++ b/builtins/array.c @@ -272,14 +272,14 @@ public bool Array_equal(const array_t *x, const array_t *y, const TypeInfo *type public CORD Array_cord(const array_t *arr, bool colorize, const TypeInfo *type) { if (!arr) - return CORD_all("[", generic_cord(NULL, false, type->ArrayInfo.item), "]"); + return CORD_all("[", generic_as_str(NULL, false, type->ArrayInfo.item), "]"); 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_cord(arr->data + i*arr->stride, colorize, item_type); + CORD item_cord = generic_as_str(arr->data + i*arr->stride, colorize, item_type); c = CORD_cat(c, item_cord); } c = CORD_cat(c, "]"); |
