Commit 45ca908f authored by Robert Griesemer's avatar Robert Griesemer

godoc: fix missing name change

Fixes godoc text mode (i.e., URL?m=text).

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5545043
parent eac31c67
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
{{end}} {{end}}
{{with .PDoc}} {{with .PDoc}}
<h2 id="Overview">Overview</h2> <h2 id="Overview">Overview</h2>
<!-- PackageName is printed as title by the top-level template --> <!-- The package's Name is printed as title by the top-level template -->
{{if $.IsPkg}} {{if $.IsPkg}}
<p><code>import "{{html .ImportPath}}"</code></p> <p><code>import "{{html .ImportPath}}"</code></p>
{{end}} {{end}}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE */}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
package {{.PackageName}} package {{.Name}}
import "{{.ImportPath}}" import "{{.ImportPath}}"
{{else}}COMMAND DOCUMENTATION {{else}}COMMAND DOCUMENTATION
......
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