Commit 02e8ec00 authored by Andrew Gerrand's avatar Andrew Gerrand

text/template, html/template: fix block example name

Change-Id: I004a43842430201296363a9745480bee94920041
Reviewed-on: https://go-review.googlesource.com/15084Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
parent 652d2386
......@@ -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}} `
......
......@@ -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}} `
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment