Fix typos

This commit is contained in:
Martin Michlmayr
2020-05-16 14:05:26 +08:00
parent 32ac5486e9
commit 5cc1760fdf
6 changed files with 7 additions and 7 deletions

View File

@@ -181,7 +181,7 @@ func (arch *Archiver) saveTree(ctx context.Context, t *restic.Tree) (restic.ID,
return res.ID(), s, nil
}
// nodeFromFileInfo returns the restic node from a os.FileInfo.
// nodeFromFileInfo returns the restic node from an os.FileInfo.
func (arch *Archiver) nodeFromFileInfo(filename string, fi os.FileInfo) (*restic.Node, error) {
node, err := restic.NodeFromFileInfo(filename, fi)
if !arch.WithAtime {

View File

@@ -17,7 +17,7 @@ import (
)
// MockT passes through all logging functions from T, but catches Fail(),
// Error/f() and Fatal/f(). It is used to test test helper functions.
// Error/f() and Fatal/f(). It is used to test helper functions.
type MockT struct {
*testing.T
HasFailed bool