@@ -78,7 +78,7 @@ func NewSyscallError(syscall string, err error) error {
78
78
// well as some syscall errors.
79
79
//
80
80
// This function predates errors.Is. It only supports errors returned by
81
- // the os package. New code should use errors.Is(err, os .ErrExist).
81
+ // the os package. New code should use errors.Is(err, fs .ErrExist).
82
82
func IsExist (err error ) bool {
83
83
return underlyingErrorIs (err , ErrExist )
84
84
}
@@ -88,7 +88,7 @@ func IsExist(err error) bool {
88
88
// ErrNotExist as well as some syscall errors.
89
89
//
90
90
// This function predates errors.Is. It only supports errors returned by
91
- // the os package. New code should use errors.Is(err, os .ErrNotExist).
91
+ // the os package. New code should use errors.Is(err, fs .ErrNotExist).
92
92
func IsNotExist (err error ) bool {
93
93
return underlyingErrorIs (err , ErrNotExist )
94
94
}
@@ -98,7 +98,7 @@ func IsNotExist(err error) bool {
98
98
// as some syscall errors.
99
99
//
100
100
// This function predates errors.Is. It only supports errors returned by
101
- // the os package. New code should use errors.Is(err, os .ErrPermission).
101
+ // the os package. New code should use errors.Is(err, fs .ErrPermission).
102
102
func IsPermission (err error ) bool {
103
103
return underlyingErrorIs (err , ErrPermission )
104
104
}
0 commit comments