Skip to content

Commit 85ca578

Browse files
committed
os: add document for ErrInvalid
Fixes #12391. Change-Id: I31211cd711c035151785c3083571594d15c7d93e Reviewed-on: https://go-review.googlesource.com/16873 Reviewed-by: Andrew Gerrand <[email protected]>
1 parent 37ac54d commit 85ca578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/os/error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010

1111
// Portable analogs of some common system call errors.
1212
var (
13-
ErrInvalid = errors.New("invalid argument")
13+
ErrInvalid = errors.New("invalid argument") // methods on File will return this error when the receiver is nil
1414
ErrPermission = errors.New("permission denied")
1515
ErrExist = errors.New("file already exists")
1616
ErrNotExist = errors.New("file does not exist")

0 commit comments

Comments
 (0)