aboutsummaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index 4e094dfe..33073785 100644
--- a/compile.c
+++ b/compile.c
@@ -2727,9 +2727,9 @@ CORD compile(env_t *env, ast_t *ast)
auto call = Match(ast, MethodCall);
type_t *self_t = get_type(env, call->self);
- if (streq(call->name, "serialize")) {
+ if (streq(call->name, "serialized")) {
if (call->args)
- code_err(ast, ":serialize() doesn't take any arguments");
+ code_err(ast, ":serialized() doesn't take any arguments");
return CORD_all("generic_serialize((", compile_declaration(self_t, "[1]"), "){",
compile(env, call->self), "}, ", compile_type_info(env, self_t), ")");
}