1
0
mirror of https://github.com/golang/go synced 2024-11-23 14:40:02 -07:00

os: add document for ErrInvalid

Fixes #12391.

Change-Id: I31211cd711c035151785c3083571594d15c7d93e
Reviewed-on: https://go-review.googlesource.com/16873
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Shenghou Ma 2015-11-12 15:27:51 -05:00 committed by Minux Ma
parent 37ac54dc2b
commit 85ca578d4a

View File

@ -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")