diff --git a/internal/fs/fs_local_vss.go b/internal/fs/fs_local_vss.go index 27abcf9ea..908e744ee 100644 --- a/internal/fs/fs_local_vss.go +++ b/internal/fs/fs_local_vss.go @@ -130,12 +130,12 @@ func (fs *LocalVss) OpenFile(name string, flag int, perm os.FileMode) (File, err return os.OpenFile(fs.snapshotPath(name), flag, perm) } -// Stat wraps the Open method of the underlying file system. +// Stat wraps the Stat method of the underlying file system. func (fs *LocalVss) Stat(name string) (os.FileInfo, error) { return os.Stat(fs.snapshotPath(name)) } -// Lstat wraps the Open method of the underlying file system. +// Lstat wraps the Lstat method of the underlying file system. func (fs *LocalVss) Lstat(name string) (os.FileInfo, error) { return os.Lstat(fs.snapshotPath(name)) } diff --git a/internal/fs/fs_reader_command.go b/internal/fs/fs_reader_command.go index 6d061f641..2fa4375dd 100644 --- a/internal/fs/fs_reader_command.go +++ b/internal/fs/fs_reader_command.go @@ -10,7 +10,7 @@ import ( "github.com/restic/restic/internal/errors" ) -// CommandReader wrap a command such that its standard output can be read using +// CommandReader wraps a command such that its standard output can be read using // a io.ReadCloser. Close() waits for the command to terminate, reporting // any error back to the caller. type CommandReader struct {