diff options
| author | Andrew Gerrand <adg@golang.org> | 2015-09-29 10:16:09 +1000 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2015-09-29 00:17:40 +0000 |
| commit | 02e8ec008ca80e6b7dd93410aa9abac3a906dee4 (patch) | |
| tree | 017b6d02b50d55f54efe56bf3c7252dd92fcc61c /src/html/template | |
| parent | 652d2386e99526eccc6634af2eaa7ff4c9a113c4 (diff) | |
| download | go-02e8ec008ca80e6b7dd93410aa9abac3a906dee4.tar.xz | |
text/template, html/template: fix block example name
Change-Id: I004a43842430201296363a9745480bee94920041
Reviewed-on: https://go-review.googlesource.com/15084
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'src/html/template')
| -rw-r--r-- | src/html/template/example_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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}} ` |
