From 11342dbb78b8897ddf75fb4c1b72d40915fab245 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Sun, 14 Jul 2024 05:04:32 -0400 Subject: [PATCH] Small Fix --- src/struct.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/struct.ts b/src/struct.ts index e8edca8..528ebe4 100644 --- a/src/struct.ts +++ b/src/struct.ts @@ -154,10 +154,11 @@ export class Struct { // Generate Shortcut let out = ''; out += `${INDENT}template \n`; + out += INDENT; if (method.isStatic) { out += 'static '; } - out += `${INDENT}auto ${method.shortName}(Args&&... args) -> decltype(${call}) {\n`; + out += `auto ${method.shortName}(Args&&... args) -> decltype(${call}) {\n`; out += `${INDENT}${INDENT}return ${call};\n`; out += `${INDENT}}\n`; return out;