aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/en/functions/strings/Chomp.md
diff options
context:
space:
mode:
Diffstat (limited to 'content/en/functions/strings/Chomp.md')
-rw-r--r--content/en/functions/strings/Chomp.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/content/en/functions/strings/Chomp.md b/content/en/functions/strings/Chomp.md
index 349f1e9b7..8024758ba 100644
--- a/content/en/functions/strings/Chomp.md
+++ b/content/en/functions/strings/Chomp.md
@@ -7,6 +7,7 @@ action:
aliases: [chomp]
related:
- functions/strings/Trim
+ - functions/strings/TrimSpace
- functions/strings/TrimLeft
- functions/strings/TrimPrefix
- functions/strings/TrimRight
@@ -19,9 +20,9 @@ aliases: [/functions/chomp]
If the argument is of type `template.HTML`, returns `template.HTML`, else returns a `string`.
```go-html-template
-{{ chomp | "foo\n" }} → foo
-{{ chomp | "foo\n\n" }} → foo
+{{ chomp "foo\n" }} → foo
+{{ chomp "foo\n\n" }} → foo
-{{ chomp | "foo\r\n" }} → foo
-{{ chomp | "foo\r\n\r\n" }} → foo
+{{ chomp "foo\r\n" }} → foo
+{{ chomp "foo\r\n\r\n" }} → foo
```