]> Cypherpunks repositories - gostls13.git/commitdiff
godoc: fix missing name change
authorRobert Griesemer <gri@golang.org>
Fri, 13 Jan 2012 01:54:17 +0000 (17:54 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 13 Jan 2012 01:54:17 +0000 (17:54 -0800)
Fixes godoc text mode (i.e., URL?m=text).

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5545043

lib/godoc/package.html
lib/godoc/package.txt

index d0a42b47baa976b9f3357731af93b018534e7a34..7073d72baa1df4ef1ae65ea24b0d81c0d96f68e0 100644 (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}}
index f219ecee96e8f15d18f80c308aeb45fcfc5c553c..d88cda79fedae918bb896471c8362688223c88bd 100644 (file)
@@ -4,7 +4,7 @@
 
 */}}{{with .PDoc}}{{if $.IsPkg}}PACKAGE
 
-package {{.PackageName}}
+package {{.Name}}
     import "{{.ImportPath}}"
 
 {{else}}COMMAND DOCUMENTATION