Commit 89228641 authored by Russ Cox's avatar Russ Cox

cmd/dist: avoid trailing space in instruction name strings

Change-Id: I2db4db852492eaddaf09dd7bae2fbd49f916e78a
Reviewed-on: https://go-review.googlesource.com/4648Reviewed-by: default avatarRob Pike <r@golang.org>
parent 5c87cf76
......@@ -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")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment