From 03715107300e7a4124ad102157996ba977c3683a Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 20 Jan 2024 16:38:24 -0800 Subject: [PATCH] Update IncludeCached - improve return statement example --- content/en/functions/partials/IncludeCached.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/functions/partials/IncludeCached.md b/content/en/functions/partials/IncludeCached.md index db275fa9ea..66ef4a6acb 100644 --- a/content/en/functions/partials/IncludeCached.md +++ b/content/en/functions/partials/IncludeCached.md @@ -51,7 +51,7 @@ The variant arguments are not available to the underlying partial template; they 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 }}