correct signature generation of non-memory enum writer

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur 2021-03-14 19:40:27 +01:00
parent 79d722df48
commit eaa714644e

View file

@ -536,7 +536,7 @@ fn gen_enum_write(
} else { } else {
writeln!( writeln!(
r, r,
"void {}_{}_write(Alloc a, {}Ref ref, {} s) {{", "void {}_{}_write({}Ref ref, {} s) {{",
name, var_name, name, structname name, var_name, name, structname
) )
.unwrap(); .unwrap();