From 1dcfbdc5c79c26b0f5d5997bed755e93f47e2ec1 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sat, 17 Feb 2024 17:44:17 -0500 Subject: Rename 'cord' to 'as_str' --- builtins/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtins/array.h') diff --git a/builtins/array.h b/builtins/array.h index 5d0a2ee4..9815ddff 100644 --- a/builtins/array.h +++ b/builtins/array.h @@ -19,7 +19,7 @@ array_t Array_slice(array_t *array, int64_t first, int64_t stride, int64_t lengt uint32_t Array_hash(const array_t *arr, const TypeInfo *type); int32_t Array_compare(const array_t *x, const array_t *y, const TypeInfo *type); bool Array_equal(const array_t *x, const array_t *y, const TypeInfo *type); -CORD Array_cord(const array_t *arr, bool colorize, const TypeInfo *type); +CORD Array_as_str(const array_t *arr, bool colorize, const TypeInfo *type); // Due to some C language weirdness, the type of "foo" is inferred to be `char[3]` instead of `const char*` // This is a hacky workaround to ensure that __typeof("foo") => `const char *` -- cgit v1.2.3