From 4d6d7018b978321581ef88c4067a3d7abd88d7e0 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 20 Jan 2024 16:38:51 -0800 Subject: [PATCH] Update Include.md - improve return statement example --- content/en/functions/partials/Include.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/partials/Include.md b/content/en/functions/partials/Include.md index 859f6665b..e08b32fd1 100644 --- a/content/en/functions/partials/Include.md +++ b/content/en/functions/partials/Include.md @@ -68,7 +68,7 @@ Then, within the partial template: To return a value from a partial template, it must contain only one `return` statement, placed at the end of the template: ```go-html-template -{{ $result := false }} +{{ $result := "" }} {{ if math.ModBool . 2 }} {{ $result = "even" }} {{ else }}