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:
parent
5c87cf7608
commit
892286419e
2
src/cmd/dist/buildgc.go
vendored
2
src/cmd/dist/buildgc.go
vendored
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user