Skip to content

Commit

Permalink
godoc: correct fsRoot to prevent misleading message about cmd/
Browse files Browse the repository at this point in the history
Fixes golang/go#14447

GitHub-Last-Rev: 98ea70c
GitHub-Pull-Request: #24
Change-Id: Ida7db414a47ea6f6da5de400bcb6a5aea03f1d05
Reviewed-on: https://go-review.googlesource.com/94841
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
alindeman authored and bradfitz committed Feb 21, 2018
1 parent 2c62430 commit db9df82
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions godoc/pres.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,11 @@ func NewPresentation(c *Corpus) *Presentation {
},
}
p.cmdHandler = handlerServer{
p: p,
c: c,
pattern: "/cmd/",
fsRoot: "/src",
p: p,
c: c,
pattern: "/cmd/",
stripPrefix: "cmd/",
fsRoot: "/src/cmd",
}
p.pkgHandler = handlerServer{
p: p,
Expand Down

0 comments on commit db9df82

Please sign in to comment.