From 892286419e83dc219504dff70a6493dfa861a6ca Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 11 Feb 2015 22:39:21 -0500 Subject: [PATCH] cmd/dist: avoid trailing space in instruction name strings Change-Id: I2db4db852492eaddaf09dd7bae2fbd49f916e78a Reviewed-on: https://go-review.googlesource.com/4648 Reviewed-by: Rob Pike --- src/cmd/dist/buildgc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/dist/buildgc.go b/src/cmd/dist/buildgc.go index bc1898e04ea..b59aa5b5a47 100644 --- a/src/cmd/dist/buildgc.go +++ b/src/cmd/dist/buildgc.go @@ -87,7 +87,7 @@ func mkanames(dir, file string) { line = line[:i] } line = line[2:] - fmt.Fprintf(&out, "\t\"%s\",\n", line) + fmt.Fprintf(&out, "\t\"%s\",\n", strings.TrimSpace(line)) } } fmt.Fprintf(&out, "};\n")