Skip to content

Commit 4734a9e

Browse files
committed
doc: replace os.ErrNotExist with fs.ErrNotExist
Signed-off-by: Manu Gupta <manugupt1@gmail.com>
1 parent 7335f4f commit 4734a9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mountinfo/mounted_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
//
1616
// If a non-existent path is specified, an appropriate error is returned.
1717
// In case the caller is not interested in this particular error, it should
18-
// be handled separately using e.g. errors.Is(err, os.ErrNotExist).
18+
// be handled separately using e.g. errors.Is(err, fs.ErrNotExist).
1919
//
2020
// This function is only available on Linux. When available (since kernel
2121
// v5.6), openat2(2) syscall is used to reliably detect all mounts. Otherwise,

mountinfo/mountinfo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func GetMounts(f FilterFunc) ([]*Info, error) {
1515
//
1616
// If a non-existent path is specified, an appropriate error is returned.
1717
// In case the caller is not interested in this particular error, it should
18-
// be handled separately using e.g. errors.Is(err, os.ErrNotExist).
18+
// be handled separately using e.g. errors.Is(err, fs.ErrNotExist).
1919
func Mounted(path string) (bool, error) {
2020
// root is always mounted
2121
if path == string(os.PathSeparator) {

0 commit comments

Comments
 (0)