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

pkg/go/doc: fix undefined: doc.NewPackageDoc in headscan.go

R=golang-dev, bradfitz, gri
CC=golang-dev
https://golang.org/cl/5539059
This commit is contained in:
Olivier Duperray 2012-01-13 16:45:30 -08:00 committed by Robert Griesemer
parent bf734d62d8
commit 066551e49b

View File

@ -77,7 +77,7 @@ func main() {
return nil
}
for _, pkg := range pkgs {
d := doc.NewPackageDoc(pkg, path)
d := doc.New(pkg, path, doc.Mode(0))
list := appendHeadings(nil, d.Doc)
for _, d := range d.Consts {
list = appendHeadings(list, d.Doc)