diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 84211fd9cc..2788a9eef6 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -717,6 +717,8 @@ // cross-compiled programs when a simulator or other execution method is // available. // +// The exit status of Run is not the exit status of the compiled binary. +// // For more about build flags, see 'go help build'. // // See also: go build. diff --git a/src/cmd/go/internal/run/run.go b/src/cmd/go/internal/run/run.go index ce24748f4e..6ff2090095 100644 --- a/src/cmd/go/internal/run/run.go +++ b/src/cmd/go/internal/run/run.go @@ -34,6 +34,8 @@ for example 'go_nacl_386_exec a.out arguments...'. This allows execution of cross-compiled programs when a simulator or other execution method is available. +The exit status of Run is not the exit status of the compiled binary. + For more about build flags, see 'go help build'. See also: go build.