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}} `