Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

docs: fix some comments

yumeiyin2257c03391be
diff --git a/backend/drive/drive.go b/backend/drive/drive.go
index 5f54a1cc6..d1868b2c9 100644
--- a/backend/drive/drive.go
+++ b/backend/drive/drive.go
@@ -2833,7 +2833,7 @@ func (f *Fs) Copy(ctx context.Context, src fs.Object, remote string) (fs.Object,
// FIXME remove this when google fixes the problem!
if isDoc {
// A short sleep is needed here in order to make the
- // change effective, without it is is ignored. This is
+ // change effective, without it is ignored. This is
// probably some eventual consistency nastiness.
sleepTime := 2 * time.Second
fs.Debugf(f, "Sleeping for %v before setting the modtime to work around drive bug - see #4517", sleepTime)
diff --git a/backend/zoho/api/types.go b/backend/zoho/api/types.go
index cb8b7bf44..2414f977c 100644
--- a/backend/zoho/api/types.go
+++ b/backend/zoho/api/types.go
@@ -90,7 +90,7 @@ type UploadResponse struct {
Uploads []UploadInfo `json:"data"`
}
-// WriteMetadataRequest is is used to write metadata for a
+// WriteMetadataRequest is used to write metadata for a
// single item
type WriteMetadataRequest struct {
Data WriteMetadata `json:"data"`
diff --git a/cmd/bisync/checkfn.go b/cmd/bisync/checkfn.go
index 8cc6e13c4..19ac7cd16 100644
--- a/cmd/bisync/checkfn.go
+++ b/cmd/bisync/checkfn.go
@@ -64,7 +64,7 @@ func WhichCheck(ctx context.Context, opt *operations.CheckOpt) *operations.Check
}
}
- // if we've gotten this far, niether check or cryptcheck will work, so use --download
+ // if we've gotten this far, neither check or cryptcheck will work, so use --download
fs.Infof(fdst, "Can't compare hashes, so using check --download for safety. (Use --size-only or --ignore-checksum to disable)")
opt.Check = DownloadCheckFn
return opt
diff --git a/cmd/bisync/resolve.go b/cmd/bisync/resolve.go
index 534c81db7..83b60044b 100644
--- a/cmd/bisync/resolve.go
+++ b/cmd/bisync/resolve.go
@@ -274,7 +274,7 @@ func (ri *renamesInfo) getNames(is1to2 bool) (srcOldName, srcNewName, dstOldName
return ri.path2.oldName, ri.path2.newName, ri.path1.oldName, ri.path1.newName
}
-// work out the lowest number that niether side has, return it for suffix
+// work out the lowest number that neither side has, return it for suffix
func (b *bisyncRun) numerate(ctx context.Context, startnum int, file, alias string) int {
for i := startnum; i < math.MaxInt; i++ {
iStr := fmt.Sprint(i)