Commit 85ca578d authored by Shenghou Ma's avatar Shenghou Ma Committed by Minux Ma

os: add document for ErrInvalid

Fixes #12391.

Change-Id: I31211cd711c035151785c3083571594d15c7d93e
Reviewed-on: https://go-review.googlesource.com/16873Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
parent 37ac54dc
...@@ -10,7 +10,7 @@ import ( ...@@ -10,7 +10,7 @@ import (
// Portable analogs of some common system call errors. // Portable analogs of some common system call errors.
var ( 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") ErrPermission = errors.New("permission denied")
ErrExist = errors.New("file already exists") ErrExist = errors.New("file already exists")
ErrNotExist = errors.New("file does not exist") ErrNotExist = errors.New("file does not exist")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment