From 2aa1e2615b7c2f201ca30812f17b883a00b00725 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Tue, 27 Aug 2024 15:34:39 +0200 Subject: [PATCH] fs: fix comments --- internal/fs/fs_local_vss.go | 4 ++-- internal/fs/fs_reader_command.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {