From: cuiweixie Date: Wed, 28 Sep 2022 13:38:31 +0000 (+0800) Subject: cmd/nm: use print-style not printf-style X-Git-Tag: go1.20rc1~842 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8d3631fcef414a2fae9177c9916977490252a86e;p=gostls13.git cmd/nm: use print-style not printf-style Change-Id: Ic977026a99a825954117902051e59928de9ccbdb Reviewed-on: https://go-review.googlesource.com/c/go/+/435947 Reviewed-by: Cherry Mui Run-TryBot: Cherry Mui Run-TryBot: Ian Lance Taylor Run-TryBot: xie cui <523516579@qq.com> TryBot-Result: Gopher Robot Auto-Submit: Ian Lance Taylor Reviewed-by: Dmitri Shuralyov --- diff --git a/src/cmd/nm/nm.go b/src/cmd/nm/nm.go index 178eeb27be..78fa60014b 100644 --- a/src/cmd/nm/nm.go +++ b/src/cmd/nm/nm.go @@ -29,7 +29,7 @@ const helpText = `usage: go tool nm [options] file... ` func usage() { - fmt.Fprintf(os.Stderr, helpText) + fmt.Fprint(os.Stderr, helpText) os.Exit(2) }