Skip to content

Commit

Permalink
docs: fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yumeiyin authored May 24, 2024
1 parent 8f1c309 commit 2257c03
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/drive/drive.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion backend/zoho/api/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion cmd/bisync/checkfn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/bisync/resolve.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2257c03

Please sign in to comment.