aboutsummaryrefslogtreecommitdiff
path: root/src/compile/lists.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-12-07 19:02:13 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-12-07 19:02:13 -0500
commit09942b27ae6fd7e7d394b2d251ef77c8a6f69e07 (patch)
tree49440d4bf059874b7f84462f9dfa96d7de9edfc7 /src/compile/lists.c
parent85d1507d8b7e0139135e040b7b4b23c02097a155 (diff)
Rename `Empty()` -> `Present()` for set-like tables
Diffstat (limited to 'src/compile/lists.c')
-rw-r--r--src/compile/lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile/lists.c b/src/compile/lists.c
index 97b0b85d..31255c1e 100644
--- a/src/compile/lists.c
+++ b/src/compile/lists.c
@@ -254,7 +254,7 @@ Text_t compile_list_method_call(env_t *env, ast_t *ast) {
} else if (streq(call->name, "unique")) {
self = compile_to_pointer_depth(env, call->self, 0, false);
(void)compile_arguments(env, ast, NULL, call->args);
- return Texts("Table$from_entries(", self, ", Table$info(", compile_type_info(item_t), ", &Empty$$info))");
+ return Texts("Table$from_entries(", self, ", Table$info(", compile_type_info(item_t), ", &Present$$info))");
} else if (streq(call->name, "pop")) {
EXPECT_POINTER();
arg_t *arg_spec = new (arg_t, .name = "index", .type = INT_TYPE, .default_val = FakeAST(Int, "-1"));