From 145a923598ceb5d2a455606e727648a2be03d8cb Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 28 Jan 2024 08:45:52 -0800 Subject: [PATCH] Simplify string concat example in math.Add --- content/en/functions/math/Add.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/content/en/functions/math/Add.md b/content/en/functions/math/Add.md index 4e05f7170..a438a3d53 100644 --- a/content/en/functions/math/Add.md +++ b/content/en/functions/math/Add.md @@ -26,10 +26,5 @@ If one of the numbers is a [`float`], the result is a `float`. You can also use the `add` function to concatenate strings. ```go-html-template -{{ $s := slice "h" "u" "g" "o" }} -{{ $t := "" }} -{{ range $s }} - {{ $t = add $t . }} -{{ end }} -{{ $t }} → hugo +{{ add "hu" "go" }} → hugo ```