mirror of https://github.com/golang/go.git
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:
parent
de316388a7
commit
8f6341d9ee
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue