Skip to content

Commit 1292e21

Browse files
committed
cmd/trace: use fmt.Print for newline-ending fixed string
This redundancy is now caught by the improved printf vet checker. Updates #49322 Change-Id: Ic7a931b8d4838be02ebb855b69624b95093bd114 Reviewed-on: https://go-review.googlesource.com/c/go/+/361265 Run-TryBot: Zvonimir Pavlinovic <[email protected]> TryBot-Result: Go Bot <[email protected]> Trust: Zvonimir Pavlinovic <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent a419f2f commit 1292e21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/trace/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var (
6666

6767
func main() {
6868
flag.Usage = func() {
69-
fmt.Fprintln(os.Stderr, usageMessage)
69+
fmt.Fprint(os.Stderr, usageMessage)
7070
os.Exit(2)
7171
}
7272
flag.Parse()

0 commit comments

Comments
 (0)