summaryrefslogtreecommitdiff
path: root/doc/tmpltohtml.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tmpltohtml.go')
-rw-r--r--doc/tmpltohtml.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tmpltohtml.go b/doc/tmpltohtml.go
index 0a509d90b..f4d2e2c2c 100644
--- a/doc/tmpltohtml.go
+++ b/doc/tmpltohtml.go
@@ -46,7 +46,7 @@ func main() {
// Read and parse the input.
name := flag.Args()[0]
tmpl := template.New(name).Funcs(template.FuncMap{"code": code})
- if err := tmpl.ParseFile(name); err != nil {
+ if _, err := tmpl.ParseFile(name); err != nil {
log.Fatal(err)
}