From 86b031018550ff1848ebe7c471c54c5a58fb1a3d Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 20 Jun 2016 15:39:03 -0700 Subject: [PATCH] text/template: clarify the default formatting used for values Fixes #16105. Change-Id: I94467f2adf861eb38f3119ad30d46a87456d5305 Reviewed-on: https://go-review.googlesource.com/24281 Reviewed-by: Andrew Gerrand --- src/text/template/doc.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/text/template/doc.go b/src/text/template/doc.go index 48e9aa7395c..fe59e3f74e8 100644 --- a/src/text/template/doc.go +++ b/src/text/template/doc.go @@ -74,8 +74,9 @@ data, defined in detail in the corresponding sections that follow. /* {{pipeline}} - The default textual representation of the value of the pipeline - is copied to the output. + The default textual representation (the same as would be + printed by fmt.Print) of the value of the pipeline is copied + to the output. {{if pipeline}} T1 {{end}} If the value of the pipeline is empty, no output is generated;