From 4734a9ebaaf4ceaa2811efefd127f1cd1df8a55f Mon Sep 17 00:00:00 2001 From: Manu Gupta Date: Mon, 25 Apr 2022 19:52:45 -0700 Subject: [PATCH] doc: replace os.ErrNotExist with fs.ErrNotExist Signed-off-by: Manu Gupta --- mountinfo/mounted_linux.go | 2 +- mountinfo/mountinfo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mountinfo/mounted_linux.go b/mountinfo/mounted_linux.go index bf221e68..e78e7261 100644 --- a/mountinfo/mounted_linux.go +++ b/mountinfo/mounted_linux.go @@ -15,7 +15,7 @@ import ( // // If a non-existent path is specified, an appropriate error is returned. // In case the caller is not interested in this particular error, it should -// be handled separately using e.g. errors.Is(err, os.ErrNotExist). +// be handled separately using e.g. errors.Is(err, fs.ErrNotExist). // // This function is only available on Linux. When available (since kernel // v5.6), openat2(2) syscall is used to reliably detect all mounts. Otherwise, diff --git a/mountinfo/mountinfo.go b/mountinfo/mountinfo.go index c7e5cb42..574aeb87 100644 --- a/mountinfo/mountinfo.go +++ b/mountinfo/mountinfo.go @@ -15,7 +15,7 @@ func GetMounts(f FilterFunc) ([]*Info, error) { // // If a non-existent path is specified, an appropriate error is returned. // In case the caller is not interested in this particular error, it should -// be handled separately using e.g. errors.Is(err, os.ErrNotExist). +// be handled separately using e.g. errors.Is(err, fs.ErrNotExist). func Mounted(path string) (bool, error) { // root is always mounted if path == string(os.PathSeparator) {