1
0
mirror of https://github.com/golang/go synced 2024-11-26 19:51:17 -07:00

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>
This commit is contained in:
Zheng Dayu 2018-04-18 17:28:34 +08:00 committed by Rob Pike
parent 206ed90eaf
commit c6bbfbe708

View File

@ -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.