From cbb6677ec57ec6822a00d7077af2e6b89b00b307 Mon Sep 17 00:00:00 2001 From: MistY Date: Fri, 25 Oct 2024 22:24:38 +0800 Subject: [PATCH] Fix typo --- content/en/functions/strings/Chomp.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/content/en/functions/strings/Chomp.md b/content/en/functions/strings/Chomp.md index 087de1fb8c..8024758ba5 100644 --- a/content/en/functions/strings/Chomp.md +++ b/content/en/functions/strings/Chomp.md @@ -20,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 ```