aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZheng Dayu <davidzheng23@gmail.com>2018-04-18 17:28:34 +0800
committerRob Pike <r@golang.org>2018-04-19 09:21:51 +0000
commitc6bbfbe708467a8d2f4f978a7ca2e417b21551c0 (patch)
tree7335bc246dd53615924486826a784186b0b73b3f /src
parent206ed90eafdb1a6b4438298e580b25dbd23cfe44 (diff)
downloadgo-c6bbfbe708467a8d2f4f978a7ca2e417b21551c0.tar.xz
text/template: improve comment example in doc
Make comment example consistent with its description. Fixes #24767 Change-Id: Icff54b489040b1ce66c644a21343c6576304cf75 Reviewed-on: https://go-review.googlesource.com/107663 Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/text/template/doc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/text/template/doc.go b/src/text/template/doc.go
index 69587cd06d..4b243067b0 100644
--- a/src/text/template/doc.go
+++ b/src/text/template/doc.go
@@ -69,6 +69,7 @@ data, defined in detail in the corresponding sections that follow.
*/
// {{/* a comment */}}
+// {{- /* a comment with white space trimmed from preceding and following text */ -}}
// A comment; discarded. May contain newlines.
// Comments do not nest and must start and end at the
// delimiters, as shown here.