From 4762e9d98c6f9970f22f5ae897079b281445283f Mon Sep 17 00:00:00 2001 From: Mike Rosset Date: Mon, 27 Feb 2012 11:31:38 +1100 Subject: [PATCH] html/template: use correct method signature, in introduction example. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/5695067 --- src/pkg/html/template/doc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/html/template/doc.go b/src/pkg/html/template/doc.go index 7f60f3b968..3699ea1a91 100644 --- a/src/pkg/html/template/doc.go +++ b/src/pkg/html/template/doc.go @@ -19,7 +19,7 @@ to parse and execute HTML templates safely. tmpl, err := template.New("name").Parse(...) // Error checking elided - err = tmpl.Execute(out, "Foo", data) + err = tmpl.Execute(out, data) If successful, tmpl will now be injection-safe. Otherwise, err is an error defined in the docs for ErrorCode. -- 2.48.1