diff --git a/godoc/format.go b/godoc/format.go
index d6eac70447..6013238feb 100644
--- a/godoc/format.go
+++ b/godoc/format.go
@@ -359,7 +359,7 @@ func FormatText(w io.Writer, text []byte, line int, goSource bool, pattern strin
if line >= 0 {
lineTag = func(w io.Writer, _ int, start bool) {
if start {
- fmt.Fprintf(w, "%6d\t", line, line)
+ fmt.Fprintf(w, "%6d\t", line, line)
line++
}
}