1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:00:06 -07:00

os: fix documentation for Executable on OpenBSD

Executable on OpenBSD now uses Args[0] so procfs is no longer
required.

Change-Id: I4155ac76f8909499783e876e92ee4f13a35b47dd
Reviewed-on: https://go-review.googlesource.com/46211
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Michael Hendricks 2017-06-20 20:38:14 -05:00 committed by Brad Fitzpatrick
parent 7b659eb155
commit ded29e7b39

View File

@ -16,8 +16,7 @@ package os
// The main use case is finding resources located relative to an
// executable.
//
// Executable is not supported on nacl or OpenBSD (unless procfs is
// mounted.)
// Executable is not supported on nacl.
func Executable() (string, error) {
return executable()
}