From: Andrew Gerrand Date: Tue, 29 Sep 2015 00:16:09 +0000 (+1000) Subject: text/template, html/template: fix block example name X-Git-Tag: go1.6beta1~964 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=02e8ec008ca80e6b7dd93410aa9abac3a906dee4;p=gostls13.git text/template, html/template: fix block example name Change-Id: I004a43842430201296363a9745480bee94920041 Reviewed-on: https://go-review.googlesource.com/15084 Reviewed-by: Andrew Gerrand --- diff --git a/src/html/template/example_test.go b/src/html/template/example_test.go index a7c2905098..40fc3ba47b 100644 --- a/src/html/template/example_test.go +++ b/src/html/template/example_test.go @@ -124,7 +124,7 @@ func Example_escape() { // The following example is duplicated in text/template; keep them in sync. -func ExampleBlock() { +func ExampleTemplate_block() { const ( master = `Names:{{block "list" .}}{{"\n"}}{{range .}}{{println "-" .}}{{end}}{{end}}` overlay = `{{define "list"}} {{join . ", "}}{{end}} ` diff --git a/src/text/template/example_test.go b/src/text/template/example_test.go index 58341c1092..9cab2e8328 100644 --- a/src/text/template/example_test.go +++ b/src/text/template/example_test.go @@ -76,7 +76,7 @@ Josie // The following example is duplicated in html/template; keep them in sync. -func ExampleBlock() { +func ExampleTemplate_block() { const ( master = `Names:{{block "list" .}}{{"\n"}}{{range .}}{{println "-" .}}{{end}}{{end}}` overlay = `{{define "list"}} {{join . ", "}}{{end}} `