]> Cypherpunks repositories - gostls13.git/commitdiff
text/template, html/template: fix block example name
authorAndrew Gerrand <adg@golang.org>
Tue, 29 Sep 2015 00:16:09 +0000 (10:16 +1000)
committerAndrew Gerrand <adg@golang.org>
Tue, 29 Sep 2015 00:17:40 +0000 (00:17 +0000)
Change-Id: I004a43842430201296363a9745480bee94920041
Reviewed-on: https://go-review.googlesource.com/15084
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/html/template/example_test.go
src/text/template/example_test.go

index a7c290509894be5617875fb2f9c06b402467766b..40fc3ba47b559ea82fb58d6ebcf72575dd437da4 100644 (file)
@@ -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}} `
index 58341c109297697eaa6bae2d7cbb138351b9955f..9cab2e8328a43a05396994e9537b8c1f793c9cd2 100644 (file)
@@ -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}} `