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:
parent
eac31c67a8
commit
45ca908f89
@ -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}}
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
*/}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
|
||||
|
||||
package {{.PackageName}}
|
||||
package {{.Name}}
|
||||
import "{{.ImportPath}}"
|
||||
|
||||
{{else}}COMMAND DOCUMENTATION
|
||||
|
Loading…
Reference in New Issue
Block a user