From c288136f0cdda47863199a07f318f101dbd30c5c Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Fri, 25 Apr 2014 12:03:38 -0400 Subject: [PATCH] go.tools/cmd/eg: Use Print, not Printf, to print Help string. Fixes golang/go#7861 LGTM=gri R=gri CC=golang-codereviews https://golang.org/cl/95770043 --- cmd/eg/eg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/eg/eg.go b/cmd/eg/eg.go index 3a12d33d..6241a022 100644 --- a/cmd/eg/eg.go +++ b/cmd/eg/eg.go @@ -42,7 +42,7 @@ func doMain() error { args := flag.Args() if *helpFlag { - fmt.Fprintf(os.Stderr, eg.Help) + fmt.Fprint(os.Stderr, eg.Help) os.Exit(2) }