From 794341a494cf3adcaac89479871c4a2d58b8f264 Mon Sep 17 00:00:00 2001 From: Luz Paz Date: Wed, 5 Mar 2025 20:47:08 -0500 Subject: [PATCH] doc: fix various typos Found via `codespell -q 3 -L atleast,iinclude,ist,programm,reenable,ser,uptodate` --- changelog/unreleased/pull-5170 | 2 +- cmd/restic/global.go | 2 +- cmd/restic/main.go | 2 +- doc/050_restore.rst | 2 +- internal/backend/retry/backend_retry_test.go | 2 +- internal/restorer/filerestorer.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/changelog/unreleased/pull-5170 b/changelog/unreleased/pull-5170 index 312eb14a5..8c81de5a1 100644 --- a/changelog/unreleased/pull-5170 +++ b/changelog/unreleased/pull-5170 @@ -3,7 +3,7 @@ Bugfix: Prevent Windows VSS event log 8194 warnings for backup with fs snapshot When running `restic backup` with `--use-fs-snapshot` flag in Windows with admin rights, event logs like ``` Volume Shadow Copy Service error: Unexpected error querying for the IVssWriterCallback interface. hr = 0x80070005, Access is denied. -. This is often caused by incorrect security settings in either the writer or requestor process. +. This is often caused by incorrect security settings in either the writer or requester process. Operation: Gathering Writer Data diff --git a/cmd/restic/global.go b/cmd/restic/global.go index a8270e20d..e4a5b75ca 100644 --- a/cmd/restic/global.go +++ b/cmd/restic/global.go @@ -43,7 +43,7 @@ import ( "golang.org/x/term" ) -// ErrNoRepository is used to report if opening a repsitory failed due +// ErrNoRepository is used to report if opening a repository failed due // to a missing backend storage location or config file var ErrNoRepository = errors.New("repository does not exist") diff --git a/cmd/restic/main.go b/cmd/restic/main.go index 80da200e3..b04b3b9ab 100644 --- a/cmd/restic/main.go +++ b/cmd/restic/main.go @@ -174,7 +174,7 @@ func main() { if err == nil { err = ctx.Err() } else if err == ErrOK { - // ErrOK overwrites context cancelation errors + // ErrOK overwrites context cancellation errors err = nil } diff --git a/doc/050_restore.rst b/doc/050_restore.rst index b37f3c4fb..980fa7b3d 100644 --- a/doc/050_restore.rst +++ b/doc/050_restore.rst @@ -148,7 +148,7 @@ options will be deleted. For example, the command would only delete files within ``/tmp/restore-work/foo``. When using ``--target / --delete`` then the ``restore`` command only works if either an ``--include`` -or ``--exclude`` option is also specified. This ensures that one cannot accidentaly delete +or ``--exclude`` option is also specified. This ensures that one cannot accidentally delete the whole system. Dry run diff --git a/internal/backend/retry/backend_retry_test.go b/internal/backend/retry/backend_retry_test.go index 9259144d4..30db6eb31 100644 --- a/internal/backend/retry/backend_retry_test.go +++ b/internal/backend/retry/backend_retry_test.go @@ -374,7 +374,7 @@ func TestBackendLoadCircuitBreakerCancel(t *testing.T) { err := retryBackend.Load(cctx, backend.Handle{Name: "other"}, 0, 0, nilRd) test.Equals(t, context.Canceled, err, "unexpected error") - // reset context and check that the cirucit breaker does not return an error + // reset context and check that the circuit breaker does not return an error cctx, cancel = context.WithCancel(context.Background()) defer cancel() err = retryBackend.Load(cctx, backend.Handle{Name: "other"}, 0, 0, nilRd) diff --git a/internal/restorer/filerestorer.go b/internal/restorer/filerestorer.go index e39115b70..6072d2109 100644 --- a/internal/restorer/filerestorer.go +++ b/internal/restorer/filerestorer.go @@ -359,7 +359,7 @@ func (r *fileRestorer) downloadBlobs(ctx context.Context, packID restic.ID, } for file, offsets := range blob.files { for _, offset := range offsets { - // avoid long cancelation delays for frequently used blobs + // avoid long cancellation delays for frequently used blobs if ctx.Err() != nil { return ctx.Err() }