1
0
mirror of https://github.com/golang/go synced 2024-11-23 19:50:06 -07:00

cmd/dist: avoid trailing space in instruction name strings

Change-Id: I2db4db852492eaddaf09dd7bae2fbd49f916e78a
Reviewed-on: https://go-review.googlesource.com/4648
Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
Russ Cox 2015-02-11 22:39:21 -05:00
parent 5c87cf7608
commit 892286419e

View File

@ -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")