Commit ffd09613 authored by Robert Griesemer's avatar Robert Griesemer

godoc: fix initialization issue

R=rsc
CC=golang-dev
https://golang.org/cl/207111
parent 5aa3a8de
......@@ -100,7 +100,7 @@ var (
)
func initRoots() {
func init() {
goroot = os.Getenv("GOROOT")
if goroot == "" {
goroot = pathutil.Join(os.Getenv("HOME"), "go")
......
......@@ -152,7 +152,6 @@ func main() {
log.Exitf("negative tabwidth %d", *tabwidth)
}
initRoots()
readTemplates()
if *httpaddr != "" {
......
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