]> Cypherpunks repositories - gostls13.git/commitdiff
text/template: improve comment example in doc
authorZheng Dayu <davidzheng23@gmail.com>
Wed, 18 Apr 2018 09:28:34 +0000 (17:28 +0800)
committerRob Pike <r@golang.org>
Thu, 19 Apr 2018 09:21:51 +0000 (09:21 +0000)
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>
src/text/template/doc.go

index 69587cd06d217f95808dd8599c68975c7f6c8ff0..4b243067b0f3bee40088bbdc61314fc794c0fc5d 100644 (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.