aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/lp_plan9.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_plan9.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_plan9.go')
-rw-r--r--src/os/exec/lp_plan9.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/exec/lp_plan9.go b/src/os/exec/lp_plan9.go
index 142f87ed32..5860cbca4d 100644
--- a/src/os/exec/lp_plan9.go
+++ b/src/os/exec/lp_plan9.go
@@ -25,8 +25,8 @@ func findExecutable(file string) error {
return os.ErrPermission
}
-// 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 begins with "/", "#", "./", or "../", it is tried
// directly and the path is not consulted.
// The result may be an absolute path or a path relative to the current directory.