aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/html
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2012-02-18 16:02:51 +1100
committerRob Pike <r@golang.org>2012-02-18 16:02:51 +1100
commit701fb580bd1d199027126b00f1a2aee2f65afd97 (patch)
tree2ac17bef92350505814a40349f347702d5592a82 /src/pkg/html
parent292bd04a434dcd294f243e247d6e3811a0921994 (diff)
downloadgo-701fb580bd1d199027126b00f1a2aee2f65afd97.tar.xz
html/template: replace obsolete reference to template.Set
Fixes #3053. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5656094
Diffstat (limited to 'src/pkg/html')
-rw-r--r--src/pkg/html/template/doc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/html/template/doc.go b/src/pkg/html/template/doc.go
index 6fe507abea..23611bcfc5 100644
--- a/src/pkg/html/template/doc.go
+++ b/src/pkg/html/template/doc.go
@@ -17,11 +17,11 @@ Introduction
This package wraps package text/template so you can share its template API
to parse and execute HTML templates safely.
- set, err := new(template.Set).Parse(...)
+ tmpl, err := template.New("name").Parse(...)
// Error checking elided
- err = set.Execute(out, "Foo", data)
+ err = tmpl.Execute(out, "Foo", data)
-If successful, set will now be injection-safe. Otherwise, err is an error
+If successful, tmpl will now be injection-safe. Otherwise, err is an error
defined in the docs for ErrorCode.
HTML templates treat data values as plain text which should be encoded so they