Simplify string concat example in math.Add

This commit is contained in:
Joe Mooring
2024-01-28 08:45:52 -08:00
committed by GitHub
parent 42488bb097
commit 145a923598
+1 -6
View File
@@ -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
```