From 341e92c020447578577a840ab3d85374f834ae06 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Tue, 21 Jul 2020 13:36:33 -0400 Subject: [PATCH] Fix typos in strings examples Signed-off-by: Dave Henderson --- docs-src/content/functions/strings.yml | 12 ++++++++---- docs/content/functions/strings.md | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 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 diff --git a/docs/content/functions/strings.md b/docs/content/functions/strings.md index 318de9e0..a3830771 100644 --- a/docs/content/functions/strings.md +++ b/docs/content/functions/strings.md @@ -230,7 +230,8 @@ input | strings.Split separator ### Examples ```console -$ 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 @@ -261,7 +262,8 @@ input | strings.SplitN separator count ### Examples ```console -$ gomplate -i '{{ range ("foo:bar:baz" | strings.SplitN ":" 2) }}{{.}}{{end}}' +$ gomplate -i '{{ range ("foo:bar:baz" | strings.SplitN ":" 2) }}{{.}} +{{end}}' foo bar:baz ``` @@ -998,7 +1000,8 @@ split input separator ### Examples ```console -$ gomplate -i '{{range split "Bart,Lisa,Maggie" ","}}Hello, {{.}}{{end}}' +$ gomplate -i '{{range split "Bart,Lisa,Maggie" ","}}Hello, {{.}} +{{end}}' Hello, Bart Hello, Lisa Hello, Maggie @@ -1028,7 +1031,8 @@ splitN input separator count ### Examples ```console -$ gomplate -i '{{ range splitN "foo:bar:baz" ":" 2 }}{{.}}{{end}}' +$ gomplate -i '{{ range splitN "foo:bar:baz" ":" 2 }}{{.}} +{{end}}' foo bar:baz ```