From 631f78ff6a9e1a7aa006271d5e677fa55752d7db Mon Sep 17 00:00:00 2001 From: Aire-One Date: Sun, 30 Oct 2022 18:50:18 +0100 Subject: [PATCH] fix(generator): render_typed_variable concat The `snippets.render_typed_variable` types concat characters were wrong. Teal union uses pipe-separator " | " not comma ", ". --- src/awesomewm.d.tl/generator/snippets.tl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/awesomewm.d.tl/generator/snippets.tl b/src/awesomewm.d.tl/generator/snippets.tl index f284c09..3937aae 100644 --- a/src/awesomewm.d.tl/generator/snippets.tl +++ b/src/awesomewm.d.tl/generator/snippets.tl @@ -17,7 +17,7 @@ function snippets.render_typed_variable(name: string, types: List): stri local tmpl_args = { name = name, - types = types:concat(", "), + types = types:concat(" | "), } return utils.do_or_fail(template.substitute, tmpl, tmpl_args)