From 8f6341d9eead70b2fa010a49f92e170682980d01 Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Fri, 14 Jun 2013 12:37:23 -0700 Subject: [PATCH] cmd/godoc: don't link unexported identifiers R=golang-dev, gri, gri CC=golang-dev https://golang.org/cl/9722045 --- src/cmd/godoc/linkify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/godoc/linkify.go b/src/cmd/godoc/linkify.go index 5b4862419e..7213abb480 100644 --- a/src/cmd/godoc/linkify.go +++ b/src/cmd/godoc/linkify.go @@ -56,7 +56,7 @@ func LinkifyText(w io.Writer, text []byte, n ast.Node) { if info.mode == identVal { fmt.Fprintf(w, ``, info.name) prev = "span" - } else { + } else if ast.IsExported(info.name) { fmt.Fprintf(w, ``, info.name) prev = "a" } -- 2.48.1