From: Mike Rosset Date: Mon, 27 Feb 2012 00:31:38 +0000 (+1100) Subject: html/template: use correct method signature, in introduction example. X-Git-Tag: weekly.2012-03-04~144 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4762e9d98c6f9970f22f5ae897079b281445283f;p=gostls13.git html/template: use correct method signature, in introduction example. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/5695067 --- 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.