From 015049af9e911c661dd236cb3ee05a57838e4d11 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sat, 8 Jun 2024 20:22:23 -0700 Subject: [PATCH] Fix typos --- content/en/functions/strings/SliceString.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/functions/strings/SliceString.md b/content/en/functions/strings/SliceString.md index 6e720c5507..ee4ed90814 100644 --- a/content/en/functions/strings/SliceString.md +++ b/content/en/functions/strings/SliceString.md @@ -15,9 +15,9 @@ aliases: [/functions/slicestr] The START and END positions are zero-based, where `0` represents the first character of the string. If START is not specified, the substring will begin at position `0`. If END is not specified, the substring will end after the last character. ```go-html-template -{{ slicestr "BatMan" }}` → BatMan -{{ slicestr "BatMan" 3 }}` → Man -{{ slicestr "BatMan" 0 3 }}` → Bat +{{ slicestr "BatMan" }} → BatMan +{{ slicestr "BatMan" 3 }} → Man +{{ slicestr "BatMan" 0 3 }} → Bat ``` The START and END arguments represent the endpoints of a [half-open interval], a concept that may be difficult to grasp when first encountered. You may find that the [`strings.Substr`] function is easier to understand.