Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Commit fe4b527

Browse files
committed
Fix a bug that causes godoc to exit when writing constants. Fixes godoc2md/issues#9
1 parent 0193fb9 commit fe4b527

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var pkgTemplate = `{{with .PDoc}}
3434
{{end}}
3535
3636
{{with .Consts}}## <a name="pkg-constants">Constants</a>
37-
{{range .}}{{node $ .Decl true | pre}}
37+
{{range .}}{{node $ .Decl | pre}}
3838
{{comment_md .Doc}}{{end}}{{end}}
3939
{{with .Vars}}## <a name="pkg-variables">Variables</a>
4040
{{range .}}{{node $ .Decl | pre}}

0 commit comments

Comments
 (0)