]> Cypherpunks repositories - gostls13.git/commit
cmd/cover: add newline to fix -covermode=atomic build error
authorThan McIntosh <thanm@google.com>
Tue, 7 Feb 2023 16:11:45 +0000 (11:11 -0500)
committerThan McIntosh <thanm@google.com>
Wed, 8 Feb 2023 18:28:28 +0000 (18:28 +0000)
commitda9376604309b8c470985b8d517a2377cfa56efe
treec77c354fcd43ce9a4a957f8eac86e86611e6fc8a
parentcdc65b83fe07052d7b3fe740acd6a34450e93a8c
cmd/cover: add newline to fix -covermode=atomic build error

Fix a minor buglet in atomic mode fixup that would generate
non-compilable code for a package containing only the "package X"
clause with no trailing newline following the "X".

Fixes #58370.

Change-Id: I0d9bc4f2b687c6bd913595418f6db7dbe50cc5df
Reviewed-on: https://go-review.googlesource.com/c/go/+/466115
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/cover/cover.go
src/cmd/cover/cover_test.go