From de36e6f8f0121676db94c3284b33c17b65750dcd Mon Sep 17 00:00:00 2001 From: Salim B Date: Tue, 29 Oct 2019 14:29:51 +0000 Subject: [PATCH] Clarify that `print` takes 1+ arguments This was really not clear from the doc before. --- content/en/functions/print.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/en/functions/print.md b/content/en/functions/print.md index fffbb79dc..d04a6ee17 100644 --- a/content/en/functions/print.md +++ b/content/en/functions/print.md @@ -1,7 +1,7 @@ --- title: print linktitle: print -description: Prints the default representation of the given argument using the standard `fmt.Print` function. +description: Prints the default representation of the given arguments using the standard `fmt.Print` function. godocref: https://golang.org/pkg/fmt/ date: 2017-02-01 publishdate: 2017-02-01 @@ -22,5 +22,6 @@ See [the go doc](https://golang.org/pkg/fmt/) for additional information. ``` {{ print "foo" }} → "foo" +{{ print "foo" "bar" }} → "foobar" {{ print (slice 1 2 3) }} → [1 2 3] ```