From ec010fddb54d03f30895907da3353628548a0744 Mon Sep 17 00:00:00 2001 From: David Symonds Date: Mon, 8 Aug 2011 15:38:37 +1000 Subject: [PATCH] exp/template: fix Must example. R=r CC=golang-dev https://golang.org/cl/4839052 --- src/pkg/exp/template/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pkg/exp/template/helper.go b/src/pkg/exp/template/helper.go index 89ec0e363fc..ae6a057eef9 100644 --- a/src/pkg/exp/template/helper.go +++ b/src/pkg/exp/template/helper.go @@ -18,7 +18,7 @@ import ( // Must is a helper that wraps a call to a function returning (*Template, os.Error) // and panics if the error is non-nil. It is intended for use in variable initializations // such as -// var t = template.Must(template.Parse("text")) +// var t = template.Must(template.New("name").Parse("text")) func Must(t *Template, err os.Error) *Template { if err != nil { panic(err)