diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-21 09:45:41 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-21 09:45:41 +0100 |
commit | 6f069e549b869c976cb6576a64812df5e7b7c809 (patch) | |
tree | b7e3d89364d549205a0a5e54092a18e4c973593a /docs/content/en/functions | |
parent | 0483299bc06a742d40528e0d675e42e149910853 (diff) | |
parent | 5a83bf314f4c0ce1d61341e0a1df21c9998e8154 (diff) |
Merge commit '5a83bf314f4c0ce1d61341e0a1df21c9998e8154'
Diffstat (limited to 'docs/content/en/functions')
-rw-r--r-- | docs/content/en/functions/strings.TrimLeft.md | 5 | ||||
-rw-r--r-- | docs/content/en/functions/strings.TrimRight.md | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/docs/content/en/functions/strings.TrimLeft.md b/docs/content/en/functions/strings.TrimLeft.md index 246facd62..6bbd62cf5 100644 --- a/docs/content/en/functions/strings.TrimLeft.md +++ b/docs/content/en/functions/strings.TrimLeft.md @@ -20,9 +20,8 @@ aliases: [] Given the string `"abba"`, leading `"a"`'s can be removed a follows: - {{ strings.TrimLeft "abba" "a" }} → "bba" + {{ strings.TrimLeft "a" "abba" }} → "bba" Numbers can be handled as well: - {{ strings.TrimLeft 1221 "12" }} → "" - + {{ strings.TrimLeft 12 1221341221 }} → "341221" diff --git a/docs/content/en/functions/strings.TrimRight.md b/docs/content/en/functions/strings.TrimRight.md index 44cb9edcf..2c6040218 100644 --- a/docs/content/en/functions/strings.TrimRight.md +++ b/docs/content/en/functions/strings.TrimRight.md @@ -20,9 +20,9 @@ aliases: [] Given the string `"abba"`, trailing `"a"`'s can be removed a follows: - {{ strings.TrimRight "abba" "a" }} → "abb" + {{ strings.TrimRight "a" "abba" }} → "abb" Numbers can be handled as well: - {{ strings.TrimRight 1221 "12" }} → "" + {{ strings.TrimRight 12 1221341221 }} → "122134" |