summaryrefslogtreecommitdiff
path: root/docs-src
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2020-07-21 13:36:33 -0400
committerDave Henderson <dhenderson@gmail.com>2020-07-21 13:36:33 -0400
commit341e92c020447578577a840ab3d85374f834ae06 (patch)
treec6a568e4a957372a516e522bc4e77de8851d702d /docs-src
parent7254b975c4b317bebd65716a92b174d8b0addd59 (diff)
Fix typos in strings examples
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'docs-src')
-rw-r--r--docs-src/content/functions/strings.yml12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs-src/content/functions/strings.yml b/docs-src/content/functions/strings.yml
index e2532a17..bdc127aa 100644
--- a/docs-src/content/functions/strings.yml
+++ b/docs-src/content/functions/strings.yml
@@ -150,7 +150,8 @@ funcs:
description: the input string
examples:
- |
- $ gomplate -i '{{range ("Bart,Lisa,Maggie" | strings.Split ",") }}Hello, {{.}}{{end}}'
+ $ gomplate -i '{{range ("Bart,Lisa,Maggie" | strings.Split ",") }}Hello, {{.}}
+ {{end}}'
Hello, Bart
Hello, Lisa
Hello, Maggie
@@ -171,7 +172,8 @@ funcs:
description: the input string
examples:
- |
- $ gomplate -i '{{ range ("foo:bar:baz" | strings.SplitN ":" 2) }}{{.}}{{end}}'
+ $ gomplate -i '{{ range ("foo:bar:baz" | strings.SplitN ":" 2) }}{{.}}
+ {{end}}'
foo
bar:baz
- name: strings.Quote
@@ -615,7 +617,8 @@ funcs:
description: the string sequence to split
examples:
- |
- $ gomplate -i '{{range split "Bart,Lisa,Maggie" ","}}Hello, {{.}}{{end}}'
+ $ gomplate -i '{{range split "Bart,Lisa,Maggie" ","}}Hello, {{.}}
+ {{end}}'
Hello, Bart
Hello, Lisa
Hello, Maggie
@@ -638,7 +641,8 @@ funcs:
description: the maximum number of substrings to return
examples:
- |
- $ gomplate -i '{{ range splitN "foo:bar:baz" ":" 2 }}{{.}}{{end}}'
+ $ gomplate -i '{{ range splitN "foo:bar:baz" ":" 2 }}{{.}}
+ {{end}}'
foo
bar:baz
- name: trim