From 71138082ea475cede1732b138f2bc542f0c00640 Mon Sep 17 00:00:00 2001 From: n4n5 Date: Thu, 13 Nov 2025 14:47:40 +0100 Subject: [PATCH] fix: comment typos --- backend/b2/api/types.go | 2 +- backend/pikpak/api/types_test.go | 2 +- backend/webdav/tus-uploader.go | 2 +- backend/yandex/yandex.go | 2 +- cmd/archive/list/list.go | 2 +- cmd/cryptcheck/cryptcheck.go | 2 +- fs/rc/internal.go | 2 +- fstest/test_all/config.yaml | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/b2/api/types.go b/backend/b2/api/types.go index 784013ca6..304797cdc 100644 --- a/backend/b2/api/types.go +++ b/backend/b2/api/types.go @@ -51,7 +51,7 @@ type LifecycleRule struct { // ServerSideEncryption is a configuration object for B2 Server-Side Encryption type ServerSideEncryption struct { Mode string `json:"mode"` - Algorithm string `json:"algorithm"` // Encryption algorith to use + Algorithm string `json:"algorithm"` // Encryption algorithm to use CustomerKey string `json:"customerKey"` // User provided Base64 encoded key that is used by the server to encrypt files CustomerKeyMd5 string `json:"customerKeyMd5"` // An MD5 hash of the decoded key } diff --git a/backend/pikpak/api/types_test.go b/backend/pikpak/api/types_test.go index d560f7572..efb603e7f 100644 --- a/backend/pikpak/api/types_test.go +++ b/backend/pikpak/api/types_test.go @@ -75,7 +75,7 @@ func TestLinkValid(t *testing.T) { Expire: Time(time.Now().Add(time.Hour)), }, expected: true, - desc: "should fallback to Expire field when URL expire parameter is unparseable", + desc: "should fallback to Expire field when URL expire parameter is unparsable", }, { name: "invalid when both URL expire and Expire field are expired", diff --git a/backend/webdav/tus-uploader.go b/backend/webdav/tus-uploader.go index 4a0233ccc..ca89085e9 100644 --- a/backend/webdav/tus-uploader.go +++ b/backend/webdav/tus-uploader.go @@ -136,7 +136,7 @@ func (u *Uploader) UploadChunk(ctx context.Context, cnt int, options ...fs.OpenO size, err := u.upload.stream.Read(data) if err != nil { - fs.Errorf(u.fs, "Chunk %d: Error: Can not read from data strem: %v", cnt, err) + fs.Errorf(u.fs, "Chunk %d: Error: Can not read from data stream: %v", cnt, err) return err } diff --git a/backend/yandex/yandex.go b/backend/yandex/yandex.go index dc35be968..1abb3fc87 100644 --- a/backend/yandex/yandex.go +++ b/backend/yandex/yandex.go @@ -961,7 +961,7 @@ func (o *Object) setMetaData(info *api.ResourceInfoResponse) (err error) { return nil } -// readMetaData reads ands sets the new metadata for a storage.Object +// readMetaData reads and sets the new metadata for a storage.Object func (o *Object) readMetaData(ctx context.Context) (err error) { if o.hasMetaData { return nil diff --git a/cmd/archive/list/list.go b/cmd/archive/list/list.go index 6935b07f6..2f85131ed 100644 --- a/cmd/archive/list/list.go +++ b/cmd/archive/list/list.go @@ -1,6 +1,6 @@ //go:build !plan9 -// Package list inplements 'rclone archive list' +// Package list implements 'rclone archive list' package list import ( diff --git a/cmd/cryptcheck/cryptcheck.go b/cmd/cryptcheck/cryptcheck.go index 164bd28c2..0b24579a8 100644 --- a/cmd/cryptcheck/cryptcheck.go +++ b/cmd/cryptcheck/cryptcheck.go @@ -23,7 +23,7 @@ func init() { var commandDefinition = &cobra.Command{ Use: "cryptcheck remote:path cryptedremote:path", Short: `Cryptcheck checks the integrity of an encrypted remote.`, - Long: `Checks a remote against a [crypted](/crypt/) remote. This is the equivalent + Long: `Checks a remote against an [encrypted](/crypt/) remote. This is the equivalent of running rclone [check](/commands/rclone_check/), but able to check the checksums of the encrypted remote. diff --git a/fs/rc/internal.go b/fs/rc/internal.go index 168da72fc..93423dcf9 100644 --- a/fs/rc/internal.go +++ b/fs/rc/internal.go @@ -68,7 +68,7 @@ func init() { Add(Call{ Path: "rc/panic", Fn: rcPanic, - Title: "This returns an error by panicing", + Title: "This returns an error by panicking", Help: ` This returns an error with the input as part of its error string. Useful for testing error handling.`, diff --git a/fstest/test_all/config.yaml b/fstest/test_all/config.yaml index a3bc56081..f24cc6cc8 100644 --- a/fstest/test_all/config.yaml +++ b/fstest/test_all/config.yaml @@ -420,14 +420,14 @@ backends: fastlist: true ignore: # It just isn't possible to preserve the existing file with azure blob - # and make sure we don't leak uncomitted blocks. + # and make sure we don't leak uncommitted blocks. - TestMultithreadCopyAbort - backend: "azureblob" remote: "TestAzureBlob,directory_markers:" fastlist: true ignore: # It just isn't possible to preserve the existing file with azure blob - # and make sure we don't leak uncomitted blocks. + # and make sure we don't leak uncommitted blocks. - TestMultithreadCopyAbort - backend: "azurefiles" remote: "TestAzureFiles:"