diff options
| author | Rob Pike <r@golang.org> | 2020-04-03 13:57:01 +1100 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2020-04-17 21:42:13 +0000 |
| commit | 670cb9c37769f07fd8c2aac6270a9f2342d2b970 (patch) | |
| tree | 7247f5ebf329a9bb1661024c65f40d82a51d4bf3 /src/os/exec/exec_test.go | |
| parent | 9b56d3e536839f5b1b55d0451e25adc58694dda7 (diff) | |
| download | go-670cb9c37769f07fd8c2aac6270a9f2342d2b970.tar.xz | |
cmd/doc: don't print package clauses on error
Everybody was deferring a flush when main already
did that, so drop all that nonsense. (Flush was doing
the package clause stuff.) But then make sure we do
get a package clause when there is correctly no output,
as for an empty package. Do that by triggering a
package clause in allDoc and packageDoc.
Slightly tricky but way less intricate than before.
Fixes #37969.
Change-Id: Ia86828436e6c4ab46e6fdaf2c550047f37f353f3
Reviewed-on: https://go-review.googlesource.com/c/go/+/226998
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/os/exec/exec_test.go')
0 files changed, 0 insertions, 0 deletions
