]> Cypherpunks repositories - gostls13.git/commitdiff
text/template: fix the documentation of the block action
authorYury Smolsky <yury@smolsky.by>
Sun, 18 Feb 2018 13:45:24 +0000 (15:45 +0200)
committerAndrew Gerrand <adg@golang.org>
Wed, 21 Feb 2018 20:57:47 +0000 (20:57 +0000)
Fixes #23520

Change-Id: Ia834819f3260691a1a0181034ef4b4b945965688
Reviewed-on: https://go-review.googlesource.com/94761
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/text/template/doc.go

index d174ebd9cfeedc5a589ad9268609e21b39998764..e64d27a7577707b9edb8a4d690dcfec621b66a33 100644 (file)
@@ -121,7 +121,7 @@ data, defined in detail in the corresponding sections that follow.
                A block is shorthand for defining a template
                        {{define "name"}} T1 {{end}}
                and then executing it in place
-                       {{template "name" .}}
+                       {{template "name" pipeline}}
                The typical use is to define a set of root templates that are
                then customized by redefining the block templates within.