From: Yury Smolsky Date: Sun, 18 Feb 2018 13:45:24 +0000 (+0200) Subject: text/template: fix the documentation of the block action X-Git-Tag: go1.11beta1~1498 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=669676b7b318cc6239179980f5bfa140437dd5d5;p=gostls13.git text/template: fix the documentation of the block action Fixes #23520 Change-Id: Ia834819f3260691a1a0181034ef4b4b945965688 Reviewed-on: https://go-review.googlesource.com/94761 Reviewed-by: Andrew Gerrand --- diff --git a/src/text/template/doc.go b/src/text/template/doc.go index d174ebd9cf..e64d27a757 100644 --- a/src/text/template/doc.go +++ b/src/text/template/doc.go @@ -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.