Commit 9402a2bf authored by Yury Smolsky's avatar Yury Smolsky Committed by Ian Lance Taylor

cmd/go: document 'go run' exit codes

Updated docs that go run does not return the exit code of
the compiled binary.

Fixes #23716

Change-Id: Ib85459974c4c6d2760ddba957ef711628098661f
Reviewed-on: https://go-review.googlesource.com/94795Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent d58593d8
...@@ -717,6 +717,8 @@ ...@@ -717,6 +717,8 @@
// cross-compiled programs when a simulator or other execution method is // cross-compiled programs when a simulator or other execution method is
// available. // available.
// //
// The exit status of Run is not the exit status of the compiled binary.
//
// For more about build flags, see 'go help build'. // For more about build flags, see 'go help build'.
// //
// See also: go build. // See also: go build.
......
...@@ -34,6 +34,8 @@ for example 'go_nacl_386_exec a.out arguments...'. This allows execution of ...@@ -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 cross-compiled programs when a simulator or other execution method is
available. available.
The exit status of Run is not the exit status of the compiled binary.
For more about build flags, see 'go help build'. For more about build flags, see 'go help build'.
See also: go build. See also: go build.
......
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