aboutsummaryrefslogtreecommitdiff
path: root/builtins/array.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-02-17 17:44:17 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-02-17 17:44:17 -0500
commit1dcfbdc5c79c26b0f5d5997bed755e93f47e2ec1 (patch)
treed923e233ddcd0a53698e9c6a9b85fe5023327e1b /builtins/array.h
parent1bcf6bdc9a2652366bc152a1d98524743623bdf5 (diff)
Rename 'cord' to 'as_str'
Diffstat (limited to 'builtins/array.h')
-rw-r--r--builtins/array.h2
1 files changed, 1 insertions, 1 deletions
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 *`