1
0
mirror of https://github.com/golang/go synced 2024-11-21 17:34:40 -07:00

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
This commit is contained in:
Robert Griesemer 2012-01-12 17:54:17 -08:00
parent eac31c67a8
commit 45ca908f89
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@
{{end}}
{{with .PDoc}}
<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}}
<p><code>import "{{html .ImportPath}}"</code></p>
{{end}}

View File

@ -4,7 +4,7 @@
*/}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
package {{.PackageName}}
package {{.Name}}
import "{{.ImportPath}}"
{{else}}COMMAND DOCUMENTATION