mirror of https://github.com/golang/go.git
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
|
|
@ -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