Skip to content

Commit

Permalink
cmd/trace: use fmt.Print for newline-ending fixed string
Browse files Browse the repository at this point in the history
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 <zpavlinovic@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Zvonimir Pavlinovic <zpavlinovic@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
zpavlinovic committed Nov 4, 2021
1 parent a419f2f commit 1292e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/trace/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ var (

func main() {
flag.Usage = func() {
fmt.Fprintln(os.Stderr, usageMessage)
fmt.Fprint(os.Stderr, usageMessage)
os.Exit(2)
}
flag.Parse()
Expand Down

0 comments on commit 1292e21

Please sign in to comment.