aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/lp_windows.go
diff options
context:
space:
mode:
authorTim Cooper <tim.cooper@layeh.com>2018-01-26 22:29:55 -0400
committerBrad Fitzpatrick <bradfitz@golang.org>2018-04-17 05:05:45 +0000
commit155aefe0c182f3788e44596db5f09cf94d2c6a3e (patch)
tree6b27d9146252ba957f361baa71a3fca058f96dc0 /src/os/exec/lp_windows.go
parentd0925228d7171eb074902a53249bccfbda51abea (diff)
downloadgo-155aefe0c182f3788e44596db5f09cf94d2c6a3e.tar.xz
os/exec: remove "binary" when talking about executables
The use of binary was incorrect as executable files can also be scripts. The docs for Error are also reworded. The old docs implied that Error was returned when attempting to start an executable, which is not correct: it was returned by LookPath when the file was not found or did not have the attributes of an executable. Change-Id: I757a44b16612936df4498b43c45c12e4c14956d2 Reviewed-on: https://go-review.googlesource.com/90315 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/os/exec/lp_windows.go')
-rw-r--r--src/os/exec/lp_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/exec/lp_windows.go b/src/os/exec/lp_windows.go
index 793d4d98b3..9ea3d76575 100644
--- a/src/os/exec/lp_windows.go
+++ b/src/os/exec/lp_windows.go
@@ -50,8 +50,8 @@ func findExecutable(file string, exts []string) (string, error) {
return "", os.ErrNotExist
}
-// LookPath searches for an executable binary named file
-// in the directories named by the PATH environment variable.
+// LookPath searches for an executable named file in the
+// directories named by the PATH environment variable.
// If file contains a slash, it is tried directly and the PATH is not consulted.
// LookPath also uses PATHEXT environment variable to match
// a suitable candidate.