From: Shenghou Ma Date: Fri, 22 May 2015 21:09:36 +0000 (-0400) Subject: go/build: make ArchChar always return "?" to match docs X-Git-Tag: go1.5beta1~489 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1c0498fc05156d99a53d4a5ed728a3dc329c34a0;p=gostls13.git go/build: make ArchChar always return "?" to match docs Change-Id: I56f825f81aead9ded7af07a02188a52d3650ccf8 Reviewed-on: https://go-review.googlesource.com/10333 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/go/build/build.go b/src/go/build/build.go index 1fd06b5d92..db6bdcf923 100644 --- a/src/go/build/build.go +++ b/src/go/build/build.go @@ -1397,5 +1397,5 @@ func IsLocalImport(path string) bool { // and the default linker output name. As of Go 1.5, those strings // no longer vary by architecture; they are compile, link, .o, and a.out, respectively. func ArchChar(goarch string) (string, error) { - return "", errors.New("architecture letter no longer used") + return "?", errors.New("architecture letter no longer used") }