From: Zheng Dayu Date: Wed, 18 Apr 2018 09:28:34 +0000 (+0800) Subject: text/template: improve comment example in doc X-Git-Tag: go1.11beta1~761 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=c6bbfbe708467a8d2f4f978a7ca2e417b21551c0;p=gostls13.git 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 --- 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.