mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/doc: add a line gap after a method with no comment
Fixes #30492 Change-Id: Iec658bdf8bfac21e1bcc3eed900722cc535ec00a Reviewed-on: https://go-review.googlesource.com/c/go/+/166178 Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
6c6a0a1f2a
commit
055f16a9e9
3 changed files with 8 additions and 0 deletions
|
|
@ -496,6 +496,7 @@ var tests = []test{
|
|||
`func ReturnExported\(\) ExportedType`,
|
||||
`func \(ExportedType\) ExportedMethod\(a int\) bool`,
|
||||
`Comment about exported method.`,
|
||||
`func \(ExportedType\) Uncommented\(a int\) bool\n\n`, // Ensure line gap after method with no comment
|
||||
},
|
||||
[]string{
|
||||
`unexportedType`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue