From 341e92c020447578577a840ab3d85374f834ae06 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Tue, 21 Jul 2020 13:36:33 -0400 Subject: Fix typos in strings examples Signed-off-by: Dave Henderson --- docs-src/content/functions/strings.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'docs-src') 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 -- cgit v1.2.3