diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2015-10-23 17:09:39 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2015-11-17 20:51:19 +0000 |
| commit | 07d48993f257a6536d83555bb8cc9daffa07dd56 (patch) | |
| tree | 170590cc60babe130029b7013ae9ed6ec4675ac4 /src/path/filepath | |
| parent | 90e26f52c6d2012d293ebfe8d272f03462213045 (diff) | |
| download | go-07d48993f257a6536d83555bb8cc9daffa07dd56.tar.xz | |
cmd/doc: fix strange indentation artifacts with unexported fields
The NamePos value was not being set, and would default to a value
of zero. This would cause the printing logic to get confused as
to where exactly to place the "Has unexported fields" string.
A trivial package changes from
<
type A struct {
A int // A
B int
// B
// Has unexported fields.
}
>
to
<
type A struct {
A int // A
B int // B
// Has unexported fields.
}
>
Fixes #12971
Change-Id: I53b7799a1f1c0ad7dcaddff83d9aaeb1d6b7823e
Reviewed-on: https://go-review.googlesource.com/16286
Run-TryBot: Joe Tsai <joetsai@digital-static.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rob Pike <r@golang.org>
Diffstat (limited to 'src/path/filepath')
0 files changed, 0 insertions, 0 deletions
