diff options
Diffstat (limited to 'src/lib/os/error.go')
| -rw-r--r-- | src/lib/os/error.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/os/error.go b/src/lib/os/error.go index dbba16c03e..f2960a59c1 100644 --- a/src/lib/os/error.go +++ b/src/lib/os/error.go @@ -25,8 +25,8 @@ func (e Errno) String() string { return syscall.Errstr(e) } -// ErrnoToError calls NewError to create an _Error object for the string -// associated with Unix error code errno. +// ErrnoToError converts errno to an Error (underneath, an Errno). +// It returns nil for the "no error" errno. func ErrnoToError(errno int64) Error { if errno == 0 { return nil |
