aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os/error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/error.go b/src/os/error.go
index 8810e69306..e26ce27970 100644
--- a/src/os/error.go
+++ b/src/os/error.go
@@ -10,7 +10,7 @@ import (
// Portable analogs of some common system call errors.
var (
- ErrInvalid = errors.New("invalid argument")
+ ErrInvalid = errors.New("invalid argument") // methods on File will return this error when the receiver is nil
ErrPermission = errors.New("permission denied")
ErrExist = errors.New("file already exists")
ErrNotExist = errors.New("file does not exist")