From c9551d433723371c5f258c4662b03d230a18dfc5 Mon Sep 17 00:00:00 2001 From: Matt Harding Date: Sat, 6 Apr 2024 03:07:34 +0100 Subject: [PATCH] Fix a typo in templates docs --- content/en/templates/introduction.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/templates/introduction.md b/content/en/templates/introduction.md index 9998d3016..b518bb13b 100644 --- a/content/en/templates/introduction.md +++ b/content/en/templates/introduction.md @@ -179,15 +179,15 @@ Within a template action you may [pipe] a value to function or method. The piped You can pipe the result of one function or method into another. For example, these are equivalent: ```go-html-template -{{ strings.TrimSuffix "o" (strings.ToLower "Hugo") }} → Hug -{{ "Hugo" | strings.ToLower | strings.TrimSuffix "o" }} → Hug +{{ strings.TrimSuffix "o" (strings.ToLower "Hugo") }} → hug +{{ "Hugo" | strings.ToLower | strings.TrimSuffix "o" }} → hug ``` These are also equivalent: ```go-html-template {{ mul 6 (add 2 5) }} → 42 -{{ 2 | add 5 | mul 6 }} → 42 +{{ 5 | add 2 | mul 6 }} → 42 ``` {{% note %}}