From eba5dd831fe9ab68bb49f708a25a9bf7591207bb Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Mon, 5 Oct 2020 23:13:38 +0200 Subject: [PATCH] Fix typos reported by misspell --- cmd/restic/integration_test.go | 2 +- internal/repository/repository.go | 2 +- internal/restorer/doc.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/restic/integration_test.go b/cmd/restic/integration_test.go index 3ba196f5b..c369f8881 100644 --- a/cmd/restic/integration_test.go +++ b/cmd/restic/integration_test.go @@ -513,7 +513,7 @@ func TestBackupErrors(t *testing.T) { gopts := env.gopts gopts.stderr = ioutil.Discard err := testRunBackupAssumeFailure(t, filepath.Dir(env.testdata), []string{"testdata"}, opts, gopts) - rtest.Assert(t, err != nil, "Assumed failure, but no error occured.") + rtest.Assert(t, err != nil, "Assumed failure, but no error occurred.") rtest.Assert(t, err == ErrInvalidSourceData, "Wrong error returned") snapshotIDs := testRunList(t, "snapshots", env.gopts) rtest.Assert(t, len(snapshotIDs) == 1, diff --git a/internal/repository/repository.go b/internal/repository/repository.go index 3c6d9665f..3ec1333e1 100644 --- a/internal/repository/repository.go +++ b/internal/repository/repository.go @@ -715,7 +715,7 @@ func (r *Repository) SaveBlob(ctx context.Context, t restic.BlobType, buf []byte // first try to add to pending blobs; if not successful, this blob is already known known = !r.idx.addPending(newID, t) - // only save when needed or explicitely told + // only save when needed or explicitly told if !known || storeDuplicate { err = r.SaveAndEncrypt(ctx, t, buf, newID) } diff --git a/internal/restorer/doc.go b/internal/restorer/doc.go index 5a4622ea6..680e30c90 100644 --- a/internal/restorer/doc.go +++ b/internal/restorer/doc.go @@ -18,7 +18,7 @@ // // Implementation does not guarantee order in which blobs are written to the // target files and, for example, the last blob of a file can be written to the -// file before any of the preceeding file blobs. It is therefore possible to +// file before any of the preceding file blobs. It is therefore possible to // have gaps in the data written to the target files if restore fails or // interrupted by the user. package restorer