Skip to content

Commit 9cf6711

Browse files
committed
cmd/cover: use fmt.Print for newline-ending fixed string
This redundancy is now caught by the improved printf vet checker (#30436). Updates #49322 Change-Id: Id450247adc6fa28a9244c019be3c1b52c2d17f49 Reviewed-on: https://go-review.googlesource.com/c/go/+/361263 Run-TryBot: Zvonimir Pavlinovic <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Zvonimir Pavlinovic <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 91962df commit 9cf6711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/cover/cover.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ Finally, to generate modified source code with coverage annotations
4040
`
4141

4242
func usage() {
43-
fmt.Fprintln(os.Stderr, usageMessage)
44-
fmt.Fprintln(os.Stderr, "Flags:")
43+
fmt.Fprint(os.Stderr, usageMessage)
44+
fmt.Fprintln(os.Stderr, "\nFlags:")
4545
flag.PrintDefaults()
4646
fmt.Fprintln(os.Stderr, "\n Only one of -html, -func, or -mode may be set.")
4747
os.Exit(2)

0 commit comments

Comments
 (0)