cmd/godoc: don't link unexported identifiers

R=golang-dev, gri, gri
CC=golang-dev
https://golang.org/cl/9722045
This commit is contained in:
Jonathan Rudenberg 2013-06-14 12:37:23 -07:00 committed by Robert Griesemer
parent de316388a7
commit 8f6341d9ee
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ func LinkifyText(w io.Writer, text []byte, n ast.Node) {
if info.mode == identVal {
fmt.Fprintf(w, `<span id="%s">`, info.name)
prev = "span"
} else {
} else if ast.IsExported(info.name) {
fmt.Fprintf(w, `<a href="#%s">`, info.name)
prev = "a"
}