summaryrefslogtreecommitdiff
path: root/src/parser/parser_core.c
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-28 01:19:20 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-28 01:19:20 +0000
commitda12345b6e3c297e530764c4424b7d9e6a1cb65e (patch)
treeb2cf2dda80c80c10425fee60fc31e17bc1de48b3 /src/parser/parser_core.c
parent6a28507b59c4a5b89562962817b45e517f442cd4 (diff)
Fix for #141
Diffstat (limited to 'src/parser/parser_core.c')
-rw-r--r--src/parser/parser_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/parser_core.c b/src/parser/parser_core.c
index e9a418e..ba6f2fe 100644
--- a/src/parser/parser_core.c
+++ b/src/parser/parser_core.c
@@ -700,7 +700,7 @@ static ASTNode *generate_derive_impls(ParserContext *ctx, ASTNode *strct, char *
{
// Simplistic Debug for now, I know.
code = xmalloc(1024);
- sprintf(code, "impl %s { fn to_string(self) -> char* { return \"%s { ... }\"; } }",
+ sprintf(code, "impl %s { fn to_string(self) -> char* { return \"%s {{ ... }}\"; } }",
name, name);
}
else if (0 == strcmp(trait, "Copy"))