Commit ec010fdd authored by David Symonds's avatar David Symonds

exp/template: fix Must example.

R=r
CC=golang-dev
https://golang.org/cl/4839052
parent 3c104037
......@@ -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)
......
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